Google.KML.geListStyle.ToKML C# (CSharp) Method

ToKML() public method

Renders the object and any children as KML
public ToKML ( XmlTextWriter kml ) : void
kml System.Xml.XmlTextWriter
return void
        public override void ToKML(XmlTextWriter kml)
        {
            kml.WriteStartElement("ListStyle");
            kml.WriteAttributeString("id", ID);
            if (BgColor.SysColor != Color.White)
                kml.WriteElementString("bgColor", BgColor.ToKML());
            if (ListItemType != geListItemTypeEnum.check)
                kml.WriteElementString("listItemType", ListItemType.ToString());
            foreach (geItemIcon ico in ItemIcons)
            {
                ico.ToKML(kml);
            }
            kml.WriteEndElement();
        }

Usage Example

Ejemplo n.º 1
0
        public override void ToKML(XmlTextWriter kml)
        {
            kml.WriteStartElement("Style");
            kml.WriteAttributeString("id", ID);

            if (IconStyle != null)
            {
                IconStyle.ToKML(kml);
            }

            if (LabelStyle != null)
            {
                LabelStyle.ToKML(kml);
            }

            if (LineStyle != null)
            {
                LineStyle.ToKML(kml);
            }

            if (PolyStyle != null)
            {
                PolyStyle.ToKML(kml);
            }

            if (BaloonStyle != null)
            {
                BaloonStyle.ToKML(kml);
            }

            if (ListStyle != null)
            {
                ListStyle.ToKML(kml);
            }
            kml.WriteEndElement();
        }