当前位置: 首页>>代码示例>>C#>>正文


C# HSSFShape.GetEscherContainer方法代码示例

本文整理汇总了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();
 }
开发者ID:Reinakumiko,项目名称:npoi,代码行数:4,代码来源:HSSFTestHelper.cs

示例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);
        }
开发者ID:mdjasim,项目名称:npoi,代码行数:13,代码来源:HSSFPatriarch.cs

示例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);
     }
 }
开发者ID:mdjasim,项目名称:npoi,代码行数:12,代码来源:HSSFPatriarch.cs

示例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;
 }
开发者ID:mdjasim,项目名称:npoi,代码行数:14,代码来源:HSSFPatriarch.cs

示例5: RemoveShape

 public bool RemoveShape(HSSFShape shape)
 {
     bool isRemoved = GetEscherContainer().RemoveChildRecord(shape.GetEscherContainer());
     if (isRemoved)
     {
         shape.AfterRemove(this.Patriarch);
         shapes.Remove(shape);
     }
     return isRemoved;
 }
开发者ID:WPG,项目名称:npoi,代码行数:10,代码来源:HSSFShapeGroup.cs

示例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;
     }
 }
开发者ID:WPG,项目名称:npoi,代码行数:21,代码来源:HSSFShapeGroup.cs


注:本文中的NPOI.HSSF.UserModel.HSSFShape.GetEscherContainer方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。