コード例 #1
0
ファイル: Format.cs プロジェクト: Servoy/electron
        //http://codereview/#3WF
        public void Copy(Format src)
        {
            NetOffice.OfficeApi.ParagraphFormat2 srcFormat = src.GetUnderlyingObject();

            //Bullets
            this.format.Bullet.Font.Name           = srcFormat.Bullet.Font.Name;
            this.format.Bullet.Font.Bold           = srcFormat.Bullet.Font.Bold;
            this.format.Bullet.Font.Size           = srcFormat.Bullet.Font.Size;
            this.format.Bullet.Font.Fill.ForeColor = srcFormat.Bullet.Font.Fill.ForeColor;
            this.format.Bullet.Character           = srcFormat.Bullet.Character;
            this.format.Bullet.RelativeSize        = srcFormat.Bullet.RelativeSize;
            this.format.Bullet.Visible             = srcFormat.Bullet.Visible;
            //Indent
            this.format.FirstLineIndent    = srcFormat.FirstLineIndent;
            this.format.IndentLevel        = srcFormat.IndentLevel;
            this.format.LeftIndent         = srcFormat.LeftIndent;
            this.format.HangingPunctuation = srcFormat.HangingPunctuation;
            this.format.LineRuleBefore     = srcFormat.LineRuleBefore;
            this.format.LineRuleAfter      = srcFormat.LineRuleAfter;
            //Spacing
            this.format.SpaceBefore = srcFormat.SpaceBefore;
            this.format.SpaceAfter  = srcFormat.SpaceAfter;
            this.format.SpaceWithin = srcFormat.SpaceWithin;
        }
コード例 #2
0
ファイル: Format.cs プロジェクト: Miramac/node-office-script
 private void Init()
 {
     this.format = this.paragraph.GetUnderlyingObject().ParagraphFormat;
 }
コード例 #3
0
ファイル: Format.cs プロジェクト: Miramac/node-office-script
 public Format(NetOffice.OfficeApi.ParagraphFormat2 format)
 {
     this.format = format;
 }
コード例 #4
0
ファイル: Format.cs プロジェクト: Servoy/electron
 private void Init()
 {
     this.format = this.paragraph.GetUnderlyingObject().ParagraphFormat;
 }
コード例 #5
0
ファイル: Format.cs プロジェクト: Servoy/electron
 public Format(NetOffice.OfficeApi.ParagraphFormat2 format)
 {
     this.format = format;
 }