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(); }
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(); }
public VisioAutomation.Text.CharacterCells GetCells(System.Collections.Generic.IList <ShapeSheet.CellData <double> > row) { var cells = new VisioAutomation.Text.CharacterCells(); cells.Color = Extensions.CellDataMethods.ToInt(row[this.Color]); cells.Transparency = row[this.Trans]; cells.Font = Extensions.CellDataMethods.ToInt(row[this.Font]); cells.Size = row[this.Size]; cells.Style = Extensions.CellDataMethods.ToInt(row[this.Style]); cells.AsianFont = Extensions.CellDataMethods.ToInt(row[this.AsianFont]); cells.AsianFont = Extensions.CellDataMethods.ToInt(row[this.AsianFont]); cells.Case = Extensions.CellDataMethods.ToInt(row[this.Case]); cells.ComplexScriptFont = Extensions.CellDataMethods.ToInt(row[this.ComplexScriptFont]); cells.ComplexScriptSize = row[this.ComplexScriptSize]; cells.DoubleStrikeThrough = Extensions.CellDataMethods.ToBool(row[this.DoubleStrikethrough]); cells.DoubleUnderline = Extensions.CellDataMethods.ToBool(row[this.DoubleUnderline]); cells.FontScale = row[this.FontScale]; cells.LangID = Extensions.CellDataMethods.ToInt(row[this.LangID]); cells.Letterspace = row[this.Letterspace]; cells.Locale = Extensions.CellDataMethods.ToInt(row[this.Locale]); cells.LocalizeFont = Extensions.CellDataMethods.ToInt(row[this.LocalizeFont]); cells.Overline = Extensions.CellDataMethods.ToBool(row[this.Overline]); cells.Perpendicular = Extensions.CellDataMethods.ToBool(row[this.Perpendicular]); cells.Pos = Extensions.CellDataMethods.ToInt(row[this.Pos]); cells.RTLText = Extensions.CellDataMethods.ToInt(row[this.RTLText]); cells.Strikethru = Extensions.CellDataMethods.ToBool(row[this.Strikethru]); cells.UseVertical = Extensions.CellDataMethods.ToInt(row[this.UseVertical]); return(cells); }
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(); }
public VisioAutomation.Text.CharacterCells GetCells(System.Collections.Generic.IList<ShapeSheet.CellData<double>> row) { var cells = new VisioAutomation.Text.CharacterCells(); cells.Color = Extensions.CellDataMethods.ToInt(row[this.Color]); cells.Transparency = row[this.Trans]; cells.Font = Extensions.CellDataMethods.ToInt(row[this.Font]); cells.Size = row[this.Size]; cells.Style = Extensions.CellDataMethods.ToInt(row[this.Style]); cells.AsianFont = Extensions.CellDataMethods.ToInt(row[this.AsianFont]); cells.AsianFont = Extensions.CellDataMethods.ToInt(row[this.AsianFont]); cells.Case = Extensions.CellDataMethods.ToInt(row[this.Case]); cells.ComplexScriptFont = Extensions.CellDataMethods.ToInt(row[this.ComplexScriptFont]); cells.ComplexScriptSize = row[this.ComplexScriptSize]; cells.DoubleStrikeThrough = Extensions.CellDataMethods.ToBool(row[this.DoubleStrikethrough]); cells.DoubleUnderline = Extensions.CellDataMethods.ToBool(row[this.DoubleUnderline]); cells.FontScale = row[this.FontScale]; cells.LangID = Extensions.CellDataMethods.ToInt(row[this.LangID]); cells.Letterspace = row[this.Letterspace]; cells.Locale = Extensions.CellDataMethods.ToInt(row[this.Locale]); cells.LocalizeFont = Extensions.CellDataMethods.ToInt(row[this.LocalizeFont]); cells.Overline = Extensions.CellDataMethods.ToBool(row[this.Overline]); cells.Perpendicular = Extensions.CellDataMethods.ToBool(row[this.Perpendicular]); cells.Pos = Extensions.CellDataMethods.ToInt(row[this.Pos]); cells.RTLText = Extensions.CellDataMethods.ToInt(row[this.RTLText]); cells.Strikethru = Extensions.CellDataMethods.ToBool(row[this.Strikethru]); cells.UseVertical = Extensions.CellDataMethods.ToInt(row[this.UseVertical]); return cells; }
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 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 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 void SetFont(VisioScripting.Models.TargetShapes targets, string fontname) { this._client.Application.AssertApplicationAvailable(); this._client.Document.AssertDocumentAvailable(); targets = targets.ResolveShapes(this._client); if (targets.Shapes.Count < 1) { return; } var application = this._client.Application.Get(); var active_document = application.ActiveDocument; var active_doc_fonts = active_document.Fonts; var font = active_doc_fonts[fontname]; var page = this._client.Page.Get(); var cells = new VisioAutomation.Text.CharacterCells(); cells.Font = font.ID; this._client.ShapeSheet.__SetCells(targets, cells, page); }