本文整理汇总了C#中NPOI.HSSF.UserModel.HSSFShape.GetEscherContainer方法的典型用法代码示例。如果您正苦于以下问题:C# HSSFShape.GetEscherContainer方法的具体用法?C# HSSFShape.GetEscherContainer怎么用?C# HSSFShape.GetEscherContainer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NPOI.HSSF.UserModel.HSSFShape
的用法示例。
在下文中一共展示了HSSFShape.GetEscherContainer方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetEscherContainer
public static EscherContainerRecord GetEscherContainer(HSSFShape shape)
{
return shape.GetEscherContainer();
}
示例2: OnCreate
private void OnCreate(HSSFShape shape)
{
EscherContainerRecord spgrContainer =
_boundAggregate.GetEscherContainer().ChildContainers[0];
EscherContainerRecord spContainer = shape.GetEscherContainer();
int shapeId = NewShapeId();
shape.ShapeId = shapeId;
spgrContainer.AddChildRecord(spContainer);
shape.AfterInsert(this);
SetFlipFlags(shape);
}
示例3: SetFlipFlags
private void SetFlipFlags(HSSFShape shape)
{
EscherSpRecord sp = (EscherSpRecord)shape.GetEscherContainer().GetChildById(EscherSpRecord.RECORD_ID);
if (shape.Anchor.IsHorizontallyFlipped)
{
sp.Flags = (sp.Flags | EscherSpRecord.FLAG_FLIPHORIZ);
}
if (shape.Anchor.IsVerticallyFlipped)
{
sp.Flags = (sp.Flags | EscherSpRecord.FLAG_FLIPVERT);
}
}
示例4: RemoveShape
/**
* @param shape to be removed
* @return true of shape is removed
*/
public bool RemoveShape(HSSFShape shape)
{
bool isRemoved = _mainSpgrContainer.RemoveChildRecord(shape.GetEscherContainer());
if (isRemoved)
{
shape.AfterRemove(this);
_shapes.Remove(shape);
}
return isRemoved;
}
示例5: RemoveShape
public bool RemoveShape(HSSFShape shape)
{
bool isRemoved = GetEscherContainer().RemoveChildRecord(shape.GetEscherContainer());
if (isRemoved)
{
shape.AfterRemove(this.Patriarch);
shapes.Remove(shape);
}
return isRemoved;
}
示例6: OnCreate
private void OnCreate(HSSFShape shape)
{
if (this.Patriarch != null)
{
EscherContainerRecord spContainer = shape.GetEscherContainer();
int shapeId = this.Patriarch.NewShapeId();
shape.ShapeId = (shapeId);
GetEscherContainer().AddChildRecord(spContainer);
shape.AfterInsert(Patriarch);
EscherSpRecord sp;
if (shape is HSSFShapeGroup)
{
sp = (EscherSpRecord)shape.GetEscherContainer().ChildContainers[0].GetChildById(EscherSpRecord.RECORD_ID);
}
else
{
sp = (EscherSpRecord)shape.GetEscherContainer().GetChildById(EscherSpRecord.RECORD_ID);
}
sp.Flags = sp.Flags | EscherSpRecord.FLAG_CHILD;
}
}