コード例 #1
0
        public void AddToElement(SXL.XElement parent)
        {
            var el = XMLUtil.CreateVisioSchema2003Element("PrintProps");

            el.Add(this.PageLeftMargin.ToXml("PageLeftMargin"));
            el.Add(this.PageRightMargin.ToXml("PageRightMargin"));
            el.Add(this.PageTopMargin.ToXml("PageTopMargin"));
            el.Add(this.PageBottomMargin.ToXml("PageBottomMargin"));

            el.Add(this.ScaleX.ToXml("ScaleX"));
            el.Add(this.ScaleY.ToXml("ScaleY"));

            el.Add(this.PagesX.ToXml("PagesX"));
            el.Add(this.PagesY.ToXml("PagesY"));

            el.Add(this.CenterX.ToXml("CenterX"));
            el.Add(this.CenterY.ToXml("CenterY"));

            el.Add(this.OnPage.ToXml("OnPage"));
            el.Add(this.PrintGrid.ToXml("PrintGrid"));

            el.Add(this.PrintPageOrientation.ToXml("PrintPageOrientation"));
            el.Add(this.PaperKind.ToXml("PaperKind"));

            el.Add(this.PaperSource.ToXml("PaperSource"));
            el.Add(this.ShdwObliqueAngle.ToXml("ShdwObliqueAngle"));

            el.Add(this.ShdwScaleFactor.ToXml("ShdwScaleFactor"));

            parent.Add(el);
        }
コード例 #2
0
        public void AddToElement(SXL.XElement parent)
        {
            var el = XMLUtil.CreateVisioSchema2003Element("Misc");

            el.Add(this.NoObjHandles.ToXml("NoObjHandles"));
            el.Add(this.NonPrinting.ToXml("NonPrinting"));
            el.Add(this.NoCtlHandles.ToXml("NoCtlHandles"));
            el.Add(this.NoAlignBox.ToXml("NoAlignBox"));

            el.Add(this.UpdateAlignBox.ToXml("UpdateAlignBox"));
            el.Add(this.HideText.ToXml("HideText"));
            el.Add(this.DynFeedback.ToXml("DynFeedback"));
            el.Add(this.GlueType.ToXml("GlueType"));
            el.Add(this.WalkPreference.ToXml("WalkPreference"));

            el.Add(this.BegTrigger.ToXml("BegTrigger"));
            el.Add(this.EndTrigger.ToXml("EndTrigger"));

            el.Add(this.ObjType.ToXml("ObjType"));
            el.Add(this.Comment.ToXml("Comment"));
            el.Add(this.IsDropSource.ToXml("IsDropSource"));
            el.Add(this.NoLiveDynamics.ToXml("NoLiveDynamics"));
            el.Add(this.LocalizeMerge.ToXml("LocalizeMerge"));

            el.Add(this.Calendar.ToXml("Calendar"));
            el.Add(this.LangID.ToXml("LangID"));
            el.Add(this.ShapeKeywords.ToXml("ShapeKeywords"));
            el.Add(this.DropOnPageScale.ToXml("DropOnPageScale"));

            parent.Add(el);
        }
コード例 #3
0
        public void AddToElement(SXL.XElement parent)
        {
            var connect_el = XMLUtil.CreateVisioSchema2003Element("Connect");

            connect_el.SetAttributeValue("FromSheet", this.FromSheet);

            if (this.FromCell != null)
            {
                connect_el.SetAttributeValue("FromCell", this.FromCell);
            }

            if (this.FromPart.HasValue)
            {
                connect_el.SetAttributeValue("FromPart", this.FromPart.Value);
            }

            connect_el.SetAttributeValue("ToSheet", this.ToSheet);

            if (this.ToCell != null)
            {
                connect_el.SetAttributeValue("ToCell", this.ToCell);
            }

            if (this.ToPart.HasValue)
            {
                connect_el.SetAttributeValue("ToPart", this.ToPart.Value);
            }

            parent.Add(connect_el);
        }
コード例 #4
0
 public void AddToElement(SXL.XElement parent)
 {
     if (this.Runs != null)
     {
         var text_el = XMLUtil.CreateVisioSchema2003Element("Text");
         foreach (var ft in this.m_runs)
         {
             if (ft.CharacterFormatIndex.HasValue)
             {
                 var xcp = XMLUtil.CreateVisioSchema2003Element("cp");
                 xcp.SetAttributeValue("IX", ft.CharacterFormatIndex.Value);
                 text_el.Add(xcp);
             }
             if (ft.ParagraphFormatIndex.HasValue)
             {
                 var xpp = XMLUtil.CreateVisioSchema2003Element("pp");
                 xpp.SetAttributeValue("IX", ft.ParagraphFormatIndex.Value);
                 text_el.Add(xpp);
             }
             if (ft.TabsFormatIndex.HasValue)
             {
                 var xtp = XMLUtil.CreateVisioSchema2003Element("tp");
                 xtp.SetAttributeValue("IX", ft.TabsFormatIndex.Value);
                 text_el.Add(xtp);
             }
             text_el.Add(ft.Text);
         }
         parent.Add(text_el);
     }
 }
コード例 #5
0
        public void AddToElement(SXL.XElement parent)
        {
            var el = XMLUtil.CreateVisioSchema2003Element("Fill");

            el.Add(this.ForegroundColor.ToXml("FillForegnd"));
            el.Add(this.BackgroundColor.ToXml("FillBkgnd"));
            el.Add(this.Pattern.ToXml("FillPattern"));
            el.Add(this.ShadowForegroundColor.ToXml("ShdwForegnd"));
            el.Add(this.ShadowBackgroundColor.ToXml("ShdwBkgnd"));
            el.Add(this.ShadowPattern.ToXml("ShdwPattern"));

            el.Add(this.ForegroundTransparency.ToXml("FillForegndTrans"));
            el.Add(this.BackgroundTransparency.ToXml("FillBkgndTrans"));

            el.Add(
                this.ShadowForegroundTransparency.ToXml("ShdwForegndTrans"));
            el.Add(
                this.ShadowBackgroundTransparency.ToXml("ShdwBkgndTrans"));

            el.Add(this.ShadowType.ToXml("ShapeShdwType"));
            el.Add(this.ShadowOffsetX.ToXml("ShapeShdwOffsetX"));
            el.Add(this.ShadowOffsetY.ToXml("ShapeShdwOffsetY"));
            el.Add(this.ShadowObliqueAngle.ToXml("ShapeShdwObliqueAngle"));
            el.Add(this.ShadowScale.ToXml("ShapeShdwScaleFactor"));

            parent.Add(el);
        }
コード例 #6
0
        public void AddToElement(SXL.XElement parent)
        {
            var el = XMLUtil.CreateVisioSchema2003Element("PageLayout");

            el.Add(this.ResizePage.ToXml("ResizePage"));
            el.Add(this.EnableGrid.ToXml("EnableGrid"));
            el.Add(this.DynamicsOff.ToXml("DynamicsOff"));
            el.Add(this.PlaceStyle.ToXml("PlaceStyle"));
            el.Add(this.RouteStyle.ToXml("RouteStyle"));
            el.Add(this.PlaceDepth.ToXml("PlaceDepth"));
            el.Add(this.PlowCode.ToXml("PlowCode"));
            el.Add(this.LineJumpCode.ToXml("LineJumpCode"));
            el.Add(this.LineJumpStyle.ToXml("LineJumpStyle"));
            el.Add(this.PageLineJumpDirX.ToXml("PageLineJumpDirX"));
            el.Add(this.PageLineJumpDirY.ToXml("PageLineJumpDirY"));
            el.Add(this.LineToNodeX.ToXml("LineToNodeX"));
            el.Add(this.LineToNodeY.ToXml("LineToNodeY"));
            el.Add(this.BlockSizeX.ToXml("BlockSizeX"));
            el.Add(this.BlockSizeY.ToXml("BlockSizeY"));
            el.Add(this.AvenueSizeX.ToXml("AvenueSizeX"));
            el.Add(this.AvenueSizeY.ToXml("AvenueSizeY"));
            el.Add(this.LineToLineX.ToXml("LineToLineX"));
            el.Add(this.LineToLineY.ToXml("LineToLineY"));
            el.Add(this.LineJumpFactorX.ToXml("LineJumpFactorX"));
            el.Add(this.LineJumpFactorY.ToXml("LineJumpFactorY"));
            el.Add(this.LineAdjustFrom.ToXml("LineAdjustFrom"));
            el.Add(this.LineAdjustTo.ToXml("LineAdjustTo"));

            el.Add(this.PlaceFlip.ToXml("PlaceFlip"));
            el.Add(this.LineRouteExt.ToXml("LineRouteExt"));
            el.Add(this.PageShapeSplit.ToXml("PageShapeSplit"));

            parent.Add(el);
        }
コード例 #7
0
ファイル: Face.cs プロジェクト: sdokmak/VisioAutomation.VDX
        public void ToXml(SXL.XElement parent)
        {
            var facename_el = XMLUtil.CreateVisioSchema2003Element("FaceName");

            facename_el.SetAttributeValueInt("ID", this.ID);
            facename_el.SetAttributeValue("Name", this.Name);
            parent.Add(facename_el);
        }
コード例 #8
0
ファイル: LineTo.cs プロジェクト: sdokmak/VisioAutomation.VDX
        public override void AddToElement(SXL.XElement parent, int index)
        {
            var el = XMLUtil.CreateVisioSchema2003Element("LineTo");

            el.SetAttributeValueInt("IX", index);
            el.Add(this.X.ToXml("X"));
            el.Add(this.Y.ToXml("Y"));
            parent.Add(el);
        }
コード例 #9
0
        public void AddToElement(SXL.XElement parent)
        {
            var el = XMLUtil.CreateVisioSchema2003Element("XForm1D");

            el.Add(this.BeginX.ToXml("BeginX"));
            el.Add(this.BeginY.ToXml("BeginY"));
            el.Add(this.EndX.ToXml("EndX"));
            el.Add(this.EndY.ToXml("EndY"));

            parent.Add(el);
        }
コード例 #10
0
        public void AddToElement(SXL.XElement parent)
        {
            var el = XMLUtil.CreateVisioSchema2003Element("TextXForm");

            el.Add(this.PinX.ToXml("TxtPinX"));
            el.Add(this.PinY.ToXml("TxtPinY"));
            el.Add(this.Width.ToXml("TxtWidth"));
            el.Add(this.Height.ToXml("TxtHeight"));
            el.Add(this.LocPinX.ToXml("TxtLocPinX"));
            el.Add(this.LocPinY.ToXml("TxtLocPinY"));
            el.Add(this.Angle.ToXml("TxtAngle"));
            parent.Add(el);
        }
コード例 #11
0
        public override void AddToElement(SXL.XElement parent, int index)
        {
            var el = XMLUtil.CreateVisioSchema2003Element("EllipticalArcTo");

            el.SetAttributeValueInt("IX", index);
            el.Add(this.X.ToXml("X"));
            el.Add(this.Y.ToXml("Y"));
            el.Add(this.A.ToXml("A"));
            el.Add(this.B.ToXml("B"));
            el.Add(this.C.ToXml("C"));
            el.Add(this.D.ToXml("D"));
            parent.Add(el);
        }
コード例 #12
0
ファイル: Shape.cs プロジェクト: sdokmak/VisioAutomation.VDX
 private void WriteLayerMembership(XElement xshape)
 {
     if (this.LayerMembership != null)
     {
         if (this.LayerMembership.Count > 0)
         {
             var xlayermem    = XMLUtil.CreateVisioSchema2003Element("LayerMem");
             var xlayermember = XMLUtil.CreateVisioSchema2003Element("LayerMember");
             xlayermember.Value = string.Join(";", this.LayerMembership.Select(i => i.ToString(System.Globalization.CultureInfo.InvariantCulture)).ToArray());
             xlayermem.Add(xlayermember);
             xshape.Add(xlayermem);
         }
     }
 }
コード例 #13
0
ファイル: Event.cs プロジェクト: sdokmak/VisioAutomation.VDX
        public void AddToElement(SXL.XElement parent)
        {
            var el1 = XMLUtil.CreateVisioSchema2003Element("Event");

            el1.Add(this.TheData.ToXml("TheData"));
            el1.Add(this.TheText.ToXml("TheText"));
            el1.Add(this.EventDblClick.ToXml("EventDblClick"));
            el1.Add(this.EventXFMod.ToXml("EventXFMod"));
            el1.Add(this.EventDrop.ToXml("EventDrop"));
            parent.Add(el1);

            var el2 = XMLUtil.CreateVisioSchema2006Element("Event");

            el2.Add(this.EventMultiDrop.ToXml2006("EventMultiDrop"));
            parent.Add(el2);
        }
コード例 #14
0
ファイル: Line.cs プロジェクト: sdokmak/VisioAutomation.VDX
        public void AddToElement(SXL.XElement parent)
        {
            var line_el = XMLUtil.CreateVisioSchema2003Element("Line");

            line_el.Add(this.Weight.ToXml("LineWeight"));
            line_el.Add(this.Color.ToXml("LineColor"));
            line_el.Add(this.Pattern.ToXml("LinePattern"));
            line_el.Add(this.Rounding.ToXml("Rounding"));
            line_el.Add(this.EndArrowSize.ToXml("EndArrowSize"));
            line_el.Add(this.BeginArrowSize.ToXml("BeginArrowSize"));
            line_el.Add(this.EndArrow.ToXml("EndArrow"));
            line_el.Add(this.BeginArrow.ToXml("BeginArrow"));
            line_el.Add(this.Cap.ToXml("LineCap"));
            line_el.Add(this.Transparency.ToXml("LineColorTrans"));
            parent.Add(line_el);
        }
コード例 #15
0
ファイル: XForm.cs プロジェクト: sdokmak/VisioAutomation.VDX
        public void AddToElement(SXL.XElement parent)
        {
            var el = XMLUtil.CreateVisioSchema2003Element("XForm");

            el.Add(this.PinX.ToXml("PinX"));
            el.Add(this.PinY.ToXml("PinY"));
            el.Add(this.Width.ToXml("Width"));
            el.Add(this.Height.ToXml("Height"));
            el.Add(this.LocPinX.ToXml("LocPinX"));
            el.Add(this.LocPinY.ToXml("LocPinY"));
            el.Add(this.Angle.ToXml("Angle"));
            el.Add(this.FlipX.ToXml("FlipX"));
            el.Add(this.FlipY.ToXml("FlipY"));
            el.Add(this.FlipMode.ToXml("FlipMode"));

            parent.Add(el);
        }
コード例 #16
0
        public SXL.XElement ToXml()
        {
            var ns = Constants.VisioXmlNamespace2003;

            var el = XMLUtil.CreateVisioSchema2003Element("DocumentProperties");

            el.SetElementValue(ns + "Creator", this.Creator);
            el.SetElementValue(ns + "Company", this.Company);
            el.SetElementValueConditional(ns + "BuildNumberCreated", this.BuildNumberCreated);
            el.SetElementValueConditional(ns + "BuildNumberEdited", this.BuildNumberEdited);
            el.SetElementValueConditionalDateTime(ns + "TimeCreated", this.TimeCreated);
            el.SetElementValueConditionalDateTime(ns + "TimeSaved", this.TimeSaved);
            el.SetElementValueConditionalDateTime(ns + "TimeEdited", this.TimeEdited);
            el.SetElementValueConditionalDateTime(ns + "TimePrinted", this.TimePrinted);

            return(el);
        }
コード例 #17
0
        public void AddToElement(SXL.XElement parent)
        {
            var el1 = XMLUtil.CreateVisioSchema2003Element("TextBlock");

            el1.Add(this.LeftMargin.ToXml("LeftMargin"));
            el1.Add(this.RightMargin.ToXml("RightMargin"));
            el1.Add(this.TopMargin.ToXml("TopMargin"));
            el1.Add(this.BottomMargin.ToXml("BottomMargin"));
            el1.Add(this.VerticalAlign.ToXml("VerticalAlign"));
            el1.Add(this.TextBkgnd.ToXml("TextBkgnd"));

            el1.Add(this.DefaultTabStop.ToXml("DefaultTabStop"));
            el1.Add(this.TextDirection.ToXml("TextDirection"));
            el1.Add(this.TextBkgndTrans.ToXml("TextBkgndTrans"));

            parent.Add(el1);
        }
コード例 #18
0
        public void AddToElement(SXL.XElement parent, int ix)
        {
            var colorentry_el = XMLUtil.CreateVisioSchema2003Element("ColorEntry");

            colorentry_el.SetAttributeValueInt("IX", ix);

            byte rbyte;
            byte gbyte;
            byte bbyte;

            ColorEntry.GetRGBBytes(this.RGB, out rbyte, out gbyte, out bbyte);
            const string format_string = "#{0:x2}{1:x2}{2:x2}";
            string       color_string  = string.Format(System.Globalization.CultureInfo.InvariantCulture, format_string, rbyte, gbyte, bbyte);

            colorentry_el.SetAttributeValue("RGB", color_string);

            parent.Add(colorentry_el);
        }
コード例 #19
0
        public void AddToElement(SXL.XElement parent)
        {
            var el = XMLUtil.CreateVisioSchema2003Element("PageProps");

            el.Add(this.PageWidth.ToXml("PageWidth"));
            el.Add(this.PageHeight.ToXml("PageHeight"));
            el.Add(this.ShdwOffsetX.ToXml("ShdwOffsetX"));
            el.Add(this.ShdwOffsetY.ToXml("ShdwOffsetY"));
            el.Add(this.PageScale.ToXml("PageScale"));
            el.Add(this.DrawingSizeType.ToXml("DrawingSizeType"));
            el.Add(this.DrawingScaleType.ToXml("DrawingScaleType"));
            el.Add(this.InhibitSnap.ToXml("InhibitSnap"));
            el.Add(this.UIVisibility.ToXml("UIVisibility"));
            el.Add(this.ShdwType.ToXml("ShdwType"));
            el.Add(this.ShdwObliqueAngle.ToXml("ShdwObliqueAngle"));
            el.Add(this.ShdwScaleFactor.ToXml("ShdwScaleFactor"));
            parent.Add(el);
        }
コード例 #20
0
ファイル: Shape.cs プロジェクト: sdokmak/VisioAutomation.VDX
        private void WriteHyperlinks(XElement shape_el)
        {
            if (this.Hyperlinks == null)
            {
                return;
            }

            int n = 1;

            foreach (var hl in this.Hyperlinks)
            {
                var hyperlink_el = XMLUtil.CreateVisioSchema2003Element("Hyperlink");


                hyperlink_el.SetAttributeValue("NameU", string.Format("Row_{0}", n));
                hyperlink_el.SetAttributeValue("ID", string.Format("{0}", n));

                if (hl.Description != null)
                {
                    var desc_el = XMLUtil.CreateVisioSchema2003Element("Description");
                    desc_el.Value = hl.Description;
                    hyperlink_el.Add(desc_el);
                }

                if (hl.Address != null)
                {
                    var address_el = XMLUtil.CreateVisioSchema2003Element("Address");
                    address_el.Value = hl.Address;
                    hyperlink_el.Add(address_el);
                }

                if (hl.SubAddress != null)
                {
                    var subaddress_el = XMLUtil.CreateVisioSchema2003Element("SubAddress");
                    subaddress_el.Value = hl.SubAddress;
                    hyperlink_el.Add(subaddress_el);
                }


                shape_el.Add(hyperlink_el);

                n++;
            }
        }
コード例 #21
0
ファイル: Layer.cs プロジェクト: sdokmak/VisioAutomation.VDX
        internal void AddToElement(SXL.XElement parent)
        {
            var layer_el = XMLUtil.CreateVisioSchema2003Element("Layer");

            layer_el.SetAttributeValue("IX", this.Index);
            layer_el.Add(this._Name.ToXml("Name"));
            layer_el.Add(this._NameUniv.ToXml("NameUniv"));
            layer_el.Add(this.Color.ToXml("Color"));
            layer_el.Add(this.Status.ToXml("Status"));
            layer_el.Add(this.Visible.ToXml("Visible"));
            layer_el.Add(this.Print.ToXml("Print"));
            layer_el.Add(this.Active.ToXml("Active"));
            layer_el.Add(this.Lock.ToXml("Lock"));
            layer_el.Add(this.Snap.ToXml("Snap"));
            layer_el.Add(this.Glue.ToXml("Glue"));
            layer_el.Add(this.ColorTrans.ToXml("ColorTrans"));

            parent.Add(layer_el);
        }
コード例 #22
0
ファイル: Shape.cs プロジェクト: sdokmak/VisioAutomation.VDX
        public void AddToElement(XElement parent)
        {
            var shape_el = XMLUtil.CreateVisioSchema2003Element("Shape");

            shape_el.SetAttributeValueInt("ID", this._id);
            shape_el.SetAttributeValue("NameU", this.Name);

            if (this._isGroup)
            {
                shape_el.SetAttributeValue("Type", "Group");
            }
            else
            {
                shape_el.SetAttributeValue("Type", "Shape");
            }


            shape_el.SetAttributeValue("Master", this.Master);

            this.WriteTransform(shape_el);
            this.WriteTransform1D(shape_el);
            this.WriteFill(shape_el);
            this.WriteLine(shape_el);
            this.WriteEvent(shape_el);
            this.WriteLayerMembership(shape_el);
            this.WriteTextBlock(shape_el);
            this.WriteProtection(shape_el);
            this.WriteMisc(shape_el);
            this.WriteHyperlinks(shape_el);
            this.WriteTextXForm(shape_el);
            this.WriteLayout(shape_el);

            this.WriteCharFormats(shape_el);
            this.WriteParaFormats(shape_el);
            // TODO: Add support for Tab Stops in VDX
            this.WriteProps(shape_el);
            this.WriteGeom(shape_el);
            this.WriteText(shape_el);


            parent.Add(shape_el);
        }
コード例 #23
0
        public void AddToElement(SXL.XElement parent, int index)
        {
            var el = XMLUtil.CreateVisioSchema2003Element("Geom");

            el.SetAttributeValueInt("IX", index);
            el.Add(this.NoFill.ToXml("NoFill"));
            el.Add(this.NoLine.ToXml("NoLine"));
            el.Add(this.NoShow.ToXml("NoShow"));
            el.Add(this.NoSnap.ToXml("NoSnap"));

            int ix = 0;

            foreach (var geomrow in this.Rows)
            {
                geomrow.AddToElement(el, ix + 1);
                ix++;
            }

            parent.Add(el);
        }
コード例 #24
0
        public void AddToElement(SXL.XElement parent)
        {
            var el = XMLUtil.CreateVisioSchema2003Element("Layout");

            el.Add(this.ShapePermeableX.ToXml("ShapePermeableX"));
            el.Add(this.ShapePermeableY.ToXml("ShapePermeableY"));
            el.Add(this.ShapePermeablePlace.ToXml("ShapePermeablePlace"));
            el.Add(this.ShapeFixedCode.ToXml("ShapeFixedCode"));
            el.Add(this.ShapePlowCode.ToXml("ShapePlowCode"));
            el.Add(this.ShapeRouteStyle.ToXml("ShapeRouteStyle"));
            el.Add(this.ConFixedCode.ToXml("ConFixedCode"));
            el.Add(this.ConLineJumpCode.ToXml("ConLineJumpCode"));
            el.Add(this.ConLineJumpStyle.ToXml("ConLineJumpStyle"));
            el.Add(this.ConLineJumpDirX.ToXml("ConLineJumpDirX"));
            el.Add(this.ConLineJumpDirY.ToXml("ConLineJumpDirY"));
            el.Add(this.ShapePlaceFlip.ToXml("ShapePlaceFlip"));
            el.Add(this.ConLineRouteExt.ToXml("ConLineRouteExt"));

            el.Add(this.ShapeSplit.ToXml("ShapeSplit"));
            el.Add(this.ShapeSplittable.ToXml("ShapeSplittable"));

            parent.Add(el);
        }
コード例 #25
0
ファイル: Char.cs プロジェクト: sdokmak/VisioAutomation.VDX
        public void AddToElement(SXL.XElement parent, int index)
        {
            var el = XMLUtil.CreateVisioSchema2003Element("Char");

            el.SetAttributeValueInt("IX", index);
            el.Add(this.Font.ToXml("Font"));
            el.Add(this.Color.ToXml("Color"));

            el.Add(this.Style.ToXml("Style"));
            el.Add(this.Case.ToXml("Case"));
            el.Add(this.Pos.ToXml("Pos"));

            el.Add(this.FontScale.ToXml("FontScale"));
            el.Add(this.Size.ToXml("Size"));

            el.Add(this.DoubleUnderline.ToXml("DblUnderline"));
            el.Add(this.Overline.ToXml("Overline"));

            el.Add(this.Strikethru.ToXml("Strikethru"));
            el.Add(this.Highlight.ToXml("Highlight"));

            el.Add(this.DoubleStrikethrough.ToXml("DoubleStrikethrough"));
            el.Add(this.RTLText.ToXml("RTLText"));
            el.Add(this.UseVertical.ToXml("UseVertical"));

            el.Add(this.Letterspace.ToXml("Letterspace"));
            el.Add(this.Transparency.ToXml("ColorTrans"));

            el.Add(this.AsianFont.ToXml("AsianFont"));
            el.Add(this.ComplexScriptFont.ToXml("ComplexScriptFont"));

            el.Add(this.LocalizeFont.ToXml("LocalizeFont"));
            el.Add(this.ComplexScriptSize.ToXml("ComplexScriptSize"));
            el.Add(this.LangID.ToXml("LangID"));

            parent.Add(el);
        }
コード例 #26
0
        public void AddToElement(SXL.XElement parent)
        {
            var el1 = XMLUtil.CreateVisioSchema2003Element("Protection");

            el1.Add(this.Width.ToXml("LockWidth"));
            el1.Add(this.Height.ToXml("LockHeight"));

            el1.Add(this.MoveX.ToXml("LockMoveX"));
            el1.Add(this.MoveY.ToXml("LockMoveY"));

            el1.Add(this.Aspect.ToXml("LockAspect"));
            el1.Add(this.Delete.ToXml("LockDelete"));

            el1.Add(this.Begin.ToXml("LockBegin"));
            el1.Add(this.Rotate.ToXml("LockRotate"));

            el1.Add(this.Crop.ToXml("LockCrop"));
            el1.Add(this.VtxEdit.ToXml("LockVtxEdit"));

            el1.Add(this.TextEdit.ToXml("LockTextEdit"));
            el1.Add(this.Format.ToXml("LockFormat"));

            el1.Add(this.Group.ToXml("LockGroup"));
            el1.Add(this.CalcWH.ToXml("LockCalcWH"));

            el1.Add(this.Select.ToXml("LockSelect"));
            el1.Add(this.CustProp.ToXml("LockCustProp"));

            parent.Add(el1);

            var el2 = XMLUtil.CreateVisioSchema2006Element("Protection");

            el2.Add(this.FromGroupFormat.ToXml2006("LockFromGroupFormat"));
            el2.Add(this.ThemeColors.ToXml2006("LockThemeColors"));
            el2.Add(this.ThemeEffects.ToXml2006("LockThemeEffects"));
            parent.Add(el2);
        }
コード例 #27
0
        public void AddToElement(SXL.XElement parent, int ix)
        {
            var el = XMLUtil.CreateVisioSchema2003Element("Para");

            el.SetAttributeValueInt("IX", ix);
            el.Add(this.IndFirst.ToXml("IndFirst"));
            el.Add(this.IndLeft.ToXml("IndLeft"));
            el.Add(this.IndRight.ToXml("IndRight"));

            el.Add(this.SpLine.ToXml("SpLine"));
            el.Add(this.SpBefore.ToXml("SpBefore"));
            el.Add(this.SpAfter.ToXml("SpAfter"));

            el.Add(this.HorzAlign.ToXml("HorzAlign"));
            el.Add(this.Bullet.ToXml("Bullet"));
            el.Add(this.BulletStr.ToXml("BulletStr"));
            el.Add(this.BulletFont.ToXml("BulletFont"));
            el.Add(this.LocalizeBulletFont.ToXml("LocalizeBulletFont"));
            el.Add(this.BulletFontSize.ToXml("BulletFontSize"));
            el.Add(this.TextPosAfterBullet.ToXml("TextPosAfterBullet"));
            el.Add(this.Flags.ToXml("Flags"));

            parent.Add(el);
        }