Example #1
0
        public GeometryRow AddNURBSTo(VA.ShapeSheet.FormulaLiteral x, VA.ShapeSheet.FormulaLiteral y, VA.ShapeSheet.FormulaLiteral a, VA.ShapeSheet.FormulaLiteral b, VA.ShapeSheet.FormulaLiteral c, VA.ShapeSheet.FormulaLiteral d, VA.ShapeSheet.FormulaLiteral e)
        {
            var row = GeometryRow.CreateNURBSTo(x, y, a, b, c, d, e);

            this.Rows.Add(row);
            return(row);
        }
Example #2
0
        public GeometryRow AddInfiniteLine(VA.ShapeSheet.FormulaLiteral x, VA.ShapeSheet.FormulaLiteral y, VA.ShapeSheet.FormulaLiteral a, VA.ShapeSheet.FormulaLiteral b)
        {
            var row = GeometryRow.CreateInfiniteLine(x, y, a, b);

            this.Rows.Add(row);
            return(row);
        }
Example #3
0
        public GeometryRow AddSplineStart(VA.ShapeSheet.FormulaLiteral x, VA.ShapeSheet.FormulaLiteral y, VA.ShapeSheet.FormulaLiteral a, VA.ShapeSheet.FormulaLiteral b, VA.ShapeSheet.FormulaLiteral c, VA.ShapeSheet.FormulaLiteral d)
        {
            var row = GeometryRow.CreateSplineStart(x, y, a, b, c, d);

            this.Rows.Add(row);
            return(row);
        }
Example #4
0
        public GeometryRow AddLineTo(VA.ShapeSheet.FormulaLiteral x, VA.ShapeSheet.FormulaLiteral y)
        {
            var row = GeometryRow.CreateLineTo(x, y);

            this.Rows.Add(row);
            return(row);
        }
Example #5
0
        public GeometryRow AddEllipticalArcTo(VA.ShapeSheet.FormulaLiteral x, VA.ShapeSheet.FormulaLiteral y, VA.ShapeSheet.FormulaLiteral a, VA.ShapeSheet.FormulaLiteral b, VA.ShapeSheet.FormulaLiteral c, VA.ShapeSheet.FormulaLiteral d)
        {
            var row = GeometryRow.CreateEllipticalArcTo(x, y, a, b, c, d);

            this.Rows.Add(row);
            return(row);
        }
Example #6
0
        public GeometryRow AddArcTo(VA.ShapeSheet.FormulaLiteral x, VA.ShapeSheet.FormulaLiteral y, VA.ShapeSheet.FormulaLiteral a)
        {
            var row = GeometryRow.CreateArcTo(x, y, a);

            this.Rows.Add(row);
            return(row);
        }
        public void VerifyFormulaLiteralSize()
        {
            // A FormulaLiteral only has a reference to a string
            // so it should be as big as a reference to a string

            var instance = new VisioAutomation.ShapeSheet.FormulaLiteral();
            int actual_size = System.Runtime.InteropServices.Marshal.SizeOf(instance);
            Assert.AreEqual(4, actual_size);
        }
Example #8
0
        public static GeometryRow CreateMoveTo(VA.ShapeSheet.FormulaLiteral x, VA.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);
        }
Example #9
0
        public void VerifyFormulaLiteralSize()
        {
            // A FormulaLiteral only has a reference to a string
            // so it should be as big as a reference to a string

            var instance    = new VisioAutomation.ShapeSheet.FormulaLiteral();
            int actual_size = System.Runtime.InteropServices.Marshal.SizeOf(instance);

            Assert.AreEqual(4, actual_size);
        }
Example #10
0
        public static GeometryRow CreateSplineKnot(VA.ShapeSheet.FormulaLiteral x,
                                                   VA.ShapeSheet.FormulaLiteral y,
                                                   VA.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);
        }
Example #11
0
        public static GeometryRow CreateInfiniteLine(VA.ShapeSheet.FormulaLiteral x,
                                                     VA.ShapeSheet.FormulaLiteral y,
                                                     VA.ShapeSheet.FormulaLiteral a,
                                                     VA.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);
        }
Example #12
0
        public static GeometryRow CreateSplineStart(VA.ShapeSheet.FormulaLiteral x,
                                                    VA.ShapeSheet.FormulaLiteral y,
                                                    VA.ShapeSheet.FormulaLiteral a,
                                                    VA.ShapeSheet.FormulaLiteral b,
                                                    VA.ShapeSheet.FormulaLiteral c,
                                                    VA.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);
        }
Example #13
0
        public static GeometryRow CreateNURBSTo(VA.ShapeSheet.FormulaLiteral x,
                                                VA.ShapeSheet.FormulaLiteral y,
                                                VA.ShapeSheet.FormulaLiteral a,
                                                VA.ShapeSheet.FormulaLiteral b,
                                                VA.ShapeSheet.FormulaLiteral c,
                                                VA.ShapeSheet.FormulaLiteral d,
                                                VA.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);
        }
Example #14
0
        private string SmartStringToFormulaString(VA.ShapeSheet.FormulaLiteral formula, bool force_no_quoting)
        {
            if (!formula.HasValue)
            {
                return(null);
            }

            if (formula.Value.Length == 0)
            {
                return(VA.Convert.StringToFormulaString(formula.Value));
            }

            if (formula.Value[0] != '\"')
            {
                if (force_no_quoting)
                {
                    return(formula.Value);
                }
                return(VA.Convert.StringToFormulaString(formula.Value));
            }

            return(formula.Value);
        }
Example #15
0
 public CellData(VA.ShapeSheet.FormulaLiteral formula, TResult result)
     : this()
 {
     this.Formula = formula;
     this.Result  = result;
 }
 public void Verify_Size_of_instance()
 {
     var instance = new VA.ShapeSheet.FormulaLiteral();
     Assert.AreEqual(4, System.Runtime.InteropServices.Marshal.SizeOf(instance));
 }
Example #17
0
 public ColorItem(string name, VA.ShapeSheet.SRC src)
 {
     this.Name    = name;
     this.SRC     = src;
     this.Formula = null;
 }
Example #18
0
        public void Verify_Size_of_instance()
        {
            var instance = new VA.ShapeSheet.FormulaLiteral();

            Assert.AreEqual(4, System.Runtime.InteropServices.Marshal.SizeOf(instance));
        }
Example #19
0
 public CustomPropertyCells(VA.ShapeSheet.FormulaLiteral value)
 {
     this.Value = value;
     this.Type  = 2;
 }