コード例 #1
0
        protected void StartSerialization(System.Xml.XmlWriter writer, System.Collections.Generic.Dictionary <string, string> Namespaces)
        {
            CustomSymbolXamlWriter customWriter = new CustomSymbolXamlWriter(writer, Namespaces);

            customWriter.StartType(this, Constants.esriMappingPrefix);
            customWriter.WriteAttribute("DisplayName", DisplayName);
            customWriter.WriteAttribute("OriginX", OriginX);
            customWriter.WriteAttribute("OriginY", OriginY);
            if (OffsetX != 0)
            {
                customWriter.WriteAttribute("OffsetX", OffsetX);
            }
            if (OffsetY != 0)
            {
                customWriter.WriteAttribute("OffsetY", OffsetY);
            }
            if (Opacity < 1)
            {
                customWriter.WriteAttribute("Opacity", Opacity);
            }
            customWriter.WriteAttribute("Size", Size);
            customWriter.WriteAttribute("PathData", PathData);
            customWriter.WriteAttribute("ScaleX", ScaleX);
            customWriter.WriteAttribute("ScaleY", ScaleY);
            customWriter.WriteAttribute("TransformX", TransformX);
            customWriter.WriteAttribute("TransformY", TransformY);
            customWriter.WriteAttribute("Width", Width);
            customWriter.WriteAttribute("Height", Height);
        }
コード例 #2
0
 public override void Serialize(System.Xml.XmlWriter writer, System.Collections.Generic.Dictionary<string, string> Namespaces)
 {
     StartSerialization(writer, Namespaces);
     CustomSymbolXamlWriter customWriter = new CustomSymbolXamlWriter(writer, Namespaces);
     customWriter.WriteAttribute("PathData1", PathData1);
     customWriter.WriteAttribute("PathData2", PathData2);
     EndSerialization(writer, Namespaces);
 }
コード例 #3
0
        public override void Serialize(System.Xml.XmlWriter writer, System.Collections.Generic.Dictionary <string, string> Namespaces)
        {
            StartSerialization(writer, Namespaces);
            CustomSymbolXamlWriter customWriter = new CustomSymbolXamlWriter(writer, Namespaces);

            customWriter.WriteAttribute("PathData1", PathData1);
            customWriter.WriteAttribute("PathData2", PathData2);
            EndSerialization(writer, Namespaces);
        }
コード例 #4
0
 protected void StartSerialization(System.Xml.XmlWriter writer, System.Collections.Generic.Dictionary<string, string> Namespaces)
 {
     CustomSymbolXamlWriter customWriter = new CustomSymbolXamlWriter(writer, Namespaces);
     customWriter.StartType(this, Constants.esriMappingPrefix);
     customWriter.WriteAttribute("DisplayName", DisplayName);
     customWriter.WriteAttribute("OriginX", OriginX);
     customWriter.WriteAttribute("OriginY", OriginY);
     if (OffsetX != 0)
         customWriter.WriteAttribute("OffsetX", OffsetX);
     if (OffsetY != 0)
         customWriter.WriteAttribute("OffsetY", OffsetY);
     if (Opacity < 1)
         customWriter.WriteAttribute("Opacity", Opacity);
     customWriter.WriteAttribute("Size", Size);
     customWriter.WriteAttribute("PathData", PathData);
     customWriter.WriteAttribute("ScaleX", ScaleX);
     customWriter.WriteAttribute("ScaleY", ScaleY);
     customWriter.WriteAttribute("TransformX", TransformX);
     customWriter.WriteAttribute("TransformY", TransformY);
     customWriter.WriteAttribute("Width", Width);
     customWriter.WriteAttribute("Height", Height);
 }