public GeometryRow AddNURBSTo(ShapeSheet.FormulaLiteral x, ShapeSheet.FormulaLiteral y, ShapeSheet.FormulaLiteral a, ShapeSheet.FormulaLiteral b, ShapeSheet.FormulaLiteral c, ShapeSheet.FormulaLiteral d, ShapeSheet.FormulaLiteral e) { var row = GeometryRow.CreateNURBSTo(x, y, a, b, c, d, e); this.Rows.Add(row); return(row); }
protected void _SetFormulaIgnoreNull(StreamType st, SIDSRC streamitem, ShapeSheet.FormulaLiteral formula) { if (formula.HasValue) { this._SetFormula(st, streamitem, formula); } }
public GeometryRow AddArcTo(ShapeSheet.FormulaLiteral x, ShapeSheet.FormulaLiteral y, ShapeSheet.FormulaLiteral a) { var row = GeometryRow.CreateArcTo(x, y, a); this.Rows.Add(row); return(row); }
public GeometryRow AddSplineKnot(ShapeSheet.FormulaLiteral x, ShapeSheet.FormulaLiteral y, ShapeSheet.FormulaLiteral a) { var row = GeometryRow.CreateSplineKnot(x, y, a); this.Rows.Add(row); return(row); }
public GeometryRow AddLineTo(ShapeSheet.FormulaLiteral x, ShapeSheet.FormulaLiteral y) { var row = GeometryRow.CreateLineTo(x, y); this.Rows.Add(row); return(row); }
public GeometryRow AddEllipticalArcTo(ShapeSheet.FormulaLiteral x, ShapeSheet.FormulaLiteral y, ShapeSheet.FormulaLiteral a, ShapeSheet.FormulaLiteral b, ShapeSheet.FormulaLiteral c, ShapeSheet.FormulaLiteral d) { var row = GeometryRow.CreateEllipticalArcTo(x, y, a, b, c, d); this.Rows.Add(row); return(row); }
public GeometryRow AddSplineStart(ShapeSheet.FormulaLiteral x, ShapeSheet.FormulaLiteral y, ShapeSheet.FormulaLiteral a, ShapeSheet.FormulaLiteral b, ShapeSheet.FormulaLiteral c, ShapeSheet.FormulaLiteral d) { var row = GeometryRow.CreateSplineStart(x, y, a, b, c, d); this.Rows.Add(row); return(row); }
public GeometryRow AddInfiniteLine(ShapeSheet.FormulaLiteral x, ShapeSheet.FormulaLiteral y, ShapeSheet.FormulaLiteral a, ShapeSheet.FormulaLiteral b) { var row = GeometryRow.CreateInfiniteLine(x, y, a, b); this.Rows.Add(row); return(row); }
public static GeometryRow CreateMoveTo(ShapeSheet.FormulaLiteral x, ShapeSheet.FormulaLiteral y) { // http://msdn.microsoft.com/en-us/library/aa195679(v=office.11).aspx var row = new GeometryRow(IVisio.VisRowTags.visTagMoveTo); row.X = x; row.Y = y; return(row); }
public static GeometryRow CreateSplineKnot(ShapeSheet.FormulaLiteral x, ShapeSheet.FormulaLiteral y, ShapeSheet.FormulaLiteral a) { // http://msdn.microsoft.com/en-us/library/aa195667(v=office.11).aspx var row = new GeometryRow(IVisio.VisRowTags.visTagSplineSpan); row.X = x; row.Y = y; row.A = a; return(row); }
public static void Set(IVisio.Shape shape, string name, ShapeSheet.FormulaLiteral value, ShapeSheet.FormulaLiteral prompt) { if (shape == null) { throw new System.ArgumentNullException(nameof(shape)); } UserDefinedCellHelper.CheckValidName(name); if (UserDefinedCellHelper.Contains(shape, name)) { string full_prop_name = UserDefinedCellHelper.GetRowName(name); if (value.HasValue) { string value_cell_name = full_prop_name; var cell = shape.CellsU[value_cell_name]; cell.FormulaU = value.Encode(); } if (prompt.HasValue) { string prompt_cell_name = full_prop_name + ".Prompt"; var cell = shape.CellsU[prompt_cell_name]; cell.FormulaU = prompt.Encode(); } return; } short row = shape.AddNamedRow( UserDefinedCellHelper._userdefinedcell_section, name, (short)IVisio.VisRowIndices.visRowUser); var writer = new FormulaWriterSRC(); if (value.HasValue) { var src = new ShapeSheet.SRC(UserDefinedCellHelper._userdefinedcell_section, row, (short)IVisio.VisCellIndices.visUserValue); writer.SetFormula(src, value.Encode()); } if (prompt.HasValue) { var src = new ShapeSheet.SRC(UserDefinedCellHelper._userdefinedcell_section, row, (short)IVisio.VisCellIndices.visUserPrompt); writer.SetFormula(src, prompt.Encode()); } writer.Commit(shape); }
public static GeometryRow CreateInfiniteLine(ShapeSheet.FormulaLiteral x, ShapeSheet.FormulaLiteral y, ShapeSheet.FormulaLiteral a, ShapeSheet.FormulaLiteral b) { // http://msdn.microsoft.com/en-us/library/aa195682(v=office.11).aspx var row = new GeometryRow(IVisio.VisRowTags.visTagInfiniteLine); row.X = x; row.Y = y; row.A = a; row.B = b; return(row); }
public static GeometryRow CreateSplineStart(ShapeSheet.FormulaLiteral x, ShapeSheet.FormulaLiteral y, ShapeSheet.FormulaLiteral a, ShapeSheet.FormulaLiteral b, ShapeSheet.FormulaLiteral c, ShapeSheet.FormulaLiteral d) { // http://msdn.microsoft.com/en-us/library/aa195663(v=office.11).aspx var row = new GeometryRow(IVisio.VisRowTags.visTagSplineBeg); row.X = x; row.Y = y; row.A = a; row.B = b; row.C = c; row.D = d; return(row); }
public static GeometryRow CreateNURBSTo(ShapeSheet.FormulaLiteral x, ShapeSheet.FormulaLiteral y, ShapeSheet.FormulaLiteral a, ShapeSheet.FormulaLiteral b, ShapeSheet.FormulaLiteral c, ShapeSheet.FormulaLiteral d, ShapeSheet.FormulaLiteral e) { // http://msdn.microsoft.com/en-us/library/aa195685(v=office.11).aspx var row = new GeometryRow(IVisio.VisRowTags.visTagEllipse); row.X = x; row.Y = y; row.A = a; row.B = b; row.C = c; row.D = d; row.E = e; return(row); }
private string SmartStringToFormulaString(ShapeSheet.FormulaLiteral formula, bool force_no_quoting) { if (!formula.HasValue) { return(null); } if (formula.Value.Length == 0) { return(formula.Encode()); } if (formula.Value[0] != '\"') { if (force_no_quoting) { return(formula.Value); } return(formula.Encode()); } return(formula.Value); }
public CustomPropertyCells(ShapeSheet.FormulaLiteral value) { this.Value = value; this.Type = 2; }
public void SetFormulaIgnoreNull(short id, ShapeSheet.SRC src, ShapeSheet.FormulaLiteral formula) { var sidsrc = new VA.ShapeSheet.SIDSRC(id, src); this._SetFormulaIgnoreNull(StreamType.SIDSRC, sidsrc, formula); }
protected SRCFormulaPair newpair(ShapeSheet.SRC src, ShapeSheet.FormulaLiteral formula) { return(new SRCFormulaPair(src, formula)); }
public SRCFormulaPair(ShapeSheet.SRC src, ShapeSheet.FormulaLiteral formula) { this.SRC = src; this.Formula = formula; }
public void SetFormulaIgnoreNull(SRC streamitem, ShapeSheet.FormulaLiteral formula) { this._SetFormulaIgnoreNull(StreamType.SRC, new SIDSRC(-1, streamitem), formula); }