Exemplo n.º 1
0
 public Formatting()
 {
     this.ShapeFormatCells     = new Shapes.ShapeFormatCells();
     this.CharacterFormatCells = new VisioAutomation.Text.CharacterFormatCells();
     this.ParagraphFormatCells = new VisioAutomation.Text.ParagraphFormatCells();
     this.TextBlockCells       = new VisioAutomation.Text.TextBlockCells();
 }
Exemplo n.º 2
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();
 }
 public VisioAutomation.Text.TextBlockCells GetCells(System.Collections.Generic.IList<ShapeSheet.CellData<double>> row)
 {
     var cells = new VisioAutomation.Text.TextBlockCells();
     cells.BottomMargin = row[this.BottomMargin];
     cells.LeftMargin = row[this.LeftMargin];
     cells.RightMargin = row[this.RightMargin];
     cells.TopMargin = row[this.TopMargin];
     cells.DefaultTabStop = row[this.DefaultTabStop];
     cells.TextBkgnd = Extensions.CellDataMethods.ToInt(row[this.TextBkgnd]);
     cells.TextBkgndTrans = row[this.TextBkgndTrans];
     cells.TextDirection = Extensions.CellDataMethods.ToInt(row[this.TextDirection]);
     cells.VerticalAlign = Extensions.CellDataMethods.ToInt(row[this.VerticalAlign]);
     cells.TxtPinX = row[this.TxtPinX];
     cells.TxtPinY = row[this.TxtPinY];
     cells.TxtLocPinX = row[this.TxtLocPinX];
     cells.TxtLocPinY = row[this.TxtLocPinY];
     cells.TxtWidth = row[this.TxtWidth];
     cells.TxtHeight = row[this.TxtHeight];
     cells.TxtAngle = row[this.TxtAngle];
     return cells;
 }
Exemplo n.º 4
0
        public VisioAutomation.Text.TextBlockCells GetCells(System.Collections.Generic.IList <ShapeSheet.CellData <double> > row)
        {
            var cells = new VisioAutomation.Text.TextBlockCells();

            cells.BottomMargin   = row[this.BottomMargin];
            cells.LeftMargin     = row[this.LeftMargin];
            cells.RightMargin    = row[this.RightMargin];
            cells.TopMargin      = row[this.TopMargin];
            cells.DefaultTabStop = row[this.DefaultTabStop];
            cells.TextBkgnd      = Extensions.CellDataMethods.ToInt(row[this.TextBkgnd]);
            cells.TextBkgndTrans = row[this.TextBkgndTrans];
            cells.TextDirection  = Extensions.CellDataMethods.ToInt(row[this.TextDirection]);
            cells.VerticalAlign  = Extensions.CellDataMethods.ToInt(row[this.VerticalAlign]);
            cells.TxtPinX        = row[this.TxtPinX];
            cells.TxtPinY        = row[this.TxtPinY];
            cells.TxtLocPinX     = row[this.TxtLocPinX];
            cells.TxtLocPinY     = row[this.TxtLocPinY];
            cells.TxtWidth       = row[this.TxtWidth];
            cells.TxtHeight      = row[this.TxtHeight];
            cells.TxtAngle       = row[this.TxtAngle];
            return(cells);
        }