Пример #1
0
 public Formatting()
 {
     this.ShapeFormatCells = new Shapes.ShapeFormatCells();
     this.CharacterCells   = new VisioAutomation.Text.CharacterCells();
     this.ParagraphCells   = new VisioAutomation.Text.ParagraphCells();
     this.TextBlockCells   = new VisioAutomation.Text.TextBlockCells();
 }
Пример #2
0
 public Formatting()
 {
     this.FormatCells    = new VA.Shapes.FormatCells();
     this.CharacterCells = new VA.Text.CharacterCells();
     this.ParagraphCells = new VA.Text.ParagraphCells();
     this.TextCells      = new VA.Text.TextCells();
 }
Пример #3
0
 public Formatting()
 {
     this.FormatCells = new VA.Shapes.FormatCells();
     this.CharacterCells = new VA.Text.CharacterCells();
     this.ParagraphCells = new VA.Text.ParagraphCells();
     this.TextCells = new VA.Text.TextCells();
 }
Пример #4
0
 public TextBlock(Drawing.Size size, string text)
 {
     this.Text           = text;
     this.Size           = size;
     this.TextBlockCells = new VisioAutomation.Text.TextBlockCells();
     this.ParagraphCells = new VisioAutomation.Text.ParagraphCells();
     this.FormatCells    = new Shapes.ShapeFormatCells();
     this.CharacterCells = new VisioAutomation.Text.CharacterCells();
 }
Пример #5
0
 public TextBlock(VA.Drawing.Size size, string text)
 {
     this.Text = text;
     this.Size = size;
     this.Textcells = new VA.Text.TextCells();
     this.ParagraphCells = new VA.Text.ParagraphCells();
     this.FormatCells = new VA.Shapes.FormatCells();
     this.CharacterCells = new VA.Text.CharacterCells();
 }
Пример #6
0
 public TextBlock(VA.Drawing.Size size, string text)
 {
     this.Text           = text;
     this.Size           = size;
     this.Textcells      = new VA.Text.TextCells();
     this.ParagraphCells = new VA.Text.ParagraphCells();
     this.FormatCells    = new VA.Shapes.FormatCells();
     this.CharacterCells = new VA.Text.CharacterCells();
 }
        public VisioAutomation.Text.ParagraphCells GetCells(System.Collections.Generic.IList<ShapeSheet.CellData<double>> row)
        {
            var cells = new VisioAutomation.Text.ParagraphCells();
            cells.IndentFirst = row[this.IndentFirst];
            cells.IndentLeft = row[this.IndentLeft];
            cells.IndentRight = row[this.IndentRight];
            cells.SpacingAfter = row[this.SpaceAfter];
            cells.SpacingBefore = row[this.SpaceBefore];
            cells.SpacingLine = row[this.SpaceLine];
            cells.HorizontalAlign = Extensions.CellDataMethods.ToInt(row[this.HorzAlign]);
            cells.Bullet = Extensions.CellDataMethods.ToInt(row[this.Bullet]);
            cells.BulletFont = Extensions.CellDataMethods.ToInt(row[this.BulletFont]);
            cells.BulletFontSize = Extensions.CellDataMethods.ToInt(row[this.BulletFontSize]);
            cells.LocBulletFont = Extensions.CellDataMethods.ToInt(row[this.LocalizeBulletFont]);
            cells.TextPosAfterBullet = row[this.TextPosAfterBullet];
            cells.Flags = Extensions.CellDataMethods.ToInt(row[this.Flags]);
            cells.BulletString = ""; // TODO: Figure out some way of getting this

            return cells;
        }
Пример #8
0
        public VisioAutomation.Text.ParagraphCells GetCells(System.Collections.Generic.IList <ShapeSheet.CellData <double> > row)
        {
            var cells = new VisioAutomation.Text.ParagraphCells();

            cells.IndentFirst        = row[this.IndentFirst];
            cells.IndentLeft         = row[this.IndentLeft];
            cells.IndentRight        = row[this.IndentRight];
            cells.SpacingAfter       = row[this.SpaceAfter];
            cells.SpacingBefore      = row[this.SpaceBefore];
            cells.SpacingLine        = row[this.SpaceLine];
            cells.HorizontalAlign    = Extensions.CellDataMethods.ToInt(row[this.HorzAlign]);
            cells.Bullet             = Extensions.CellDataMethods.ToInt(row[this.Bullet]);
            cells.BulletFont         = Extensions.CellDataMethods.ToInt(row[this.BulletFont]);
            cells.BulletFontSize     = Extensions.CellDataMethods.ToInt(row[this.BulletFontSize]);
            cells.LocBulletFont      = Extensions.CellDataMethods.ToInt(row[this.LocalizeBulletFont]);
            cells.TextPosAfterBullet = row[this.TextPosAfterBullet];
            cells.Flags        = Extensions.CellDataMethods.ToInt(row[this.Flags]);
            cells.BulletString = ""; // TODO: Figure out some way of getting this

            return(cells);
        }