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(); }
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; }
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); }