本文整理匯總了C#中NPOI.HSSF.UserModel.HSSFShape.AfterInsert方法的典型用法代碼示例。如果您正苦於以下問題:C# HSSFShape.AfterInsert方法的具體用法?C# HSSFShape.AfterInsert怎麽用?C# HSSFShape.AfterInsert使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類NPOI.HSSF.UserModel.HSSFShape
的用法示例。
在下文中一共展示了HSSFShape.AfterInsert方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: 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);
}
示例2: 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;
}
}