internal override void Load(XmlNode node) { base.Load(node); this.m_left = Utils.GetAttrInt(node, "Left", 0); this.m_top = Utils.GetAttrInt(node, "Top", 0); this.m_right = Utils.GetAttrInt(node, "Right", 0); this.m_bottom = Utils.GetAttrInt(node, "Bottom", 0); this.m_type = Utils.Str2ImageType(Utils.GetXmlNodeAttribute(node, "ImageType"), RdImageType.itBitmap); this.m_grdphicStr = Utils.GetAttrString(node, "Graphic", string.Empty); this.m_print = Utils.GetAttrBool(node, "Print", true); this.m_preview = Utils.GetAttrBool(node, "Preview", true); this.m_hAlignment = Utils.Str2HAlignment(Utils.GetXmlNodeAttribute(node, "HAlignment"), RdHAlignment.haCenter); this.m_vAlignment = Utils.Str2VAlignment(Utils.GetXmlNodeAttribute(node, "VAlignment"), RdVAlignment.vaCenter); this.m_transparent = Utils.GetAttrBool(node, "Transparent", false); this.m_imageControl = Utils.Str2ImageControl(Utils.GetXmlNodeAttribute(node, "ImageControl"), RdImageControl.icAlign); this.m_xDPI = Utils.GetAttrInt(node, "XDPI", 72); this.m_yDPI = Utils.GetAttrInt(node, "YDPI", 72); this.m_width = Utils.GetAttrInt(node, "Width", 0); this.m_height = Utils.GetAttrInt(node, "Height", 0); }
internal void SetHAlignment(RdHAlignment value) { this.m_style.HAlignment = value; this.DoOnHAlignmentChanged(); }