Example #1
0
 public XElement ToXml(IToXmlContext ctx)
 {
     return(new XElement("UserQueryPart",
                         new XAttribute("UserQuery", ctx.Include(UserQuery)),
                         new XAttribute("RenderMode", RenderMode.ToString()),
                         new XAttribute("AllowSelection", AllowSelection.ToString()),
                         new XAttribute("ShowFooter", ShowFooter.ToString())
                         ));
 }
Example #2
0
        /// <summary>
        /// 속성 중 Attribute Node로 표현해야 한다.
        /// </summary>
        /// <param name="writer"></param>
        public override void GenerateXmlAttributes(System.Xml.XmlWriter writer)
        {
            base.GenerateXmlAttributes(writer);

            if (AllowSelection.HasValue)
            {
                writer.WriteAttributeString("AllowSelection", AllowSelection.GetHashCode().ToString());
            }
            if (AllowAxisShift.HasValue)
            {
                writer.WriteAttributeString("AllowAxisShift", AllowAxisShift.GetHashCode().ToString());
            }
            if (ConnectNullData.HasValue)
            {
                writer.WriteAttributeString("ConnectNullData", ConnectNullData.GetHashCode().ToString());
            }

            if (_anchorAttr != null)
            {
                _anchorAttr.GenerateXmlAttributes(writer);
            }
        }