當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。