/// <summary> /// Initializes the <see cref="Header"/> class. /// </summary> static Header() { ColumnHeader = new Header(false); ColumnHeader.MakeReadOnly(); RowHeader = new Header(false); RowHeader.TextAlignment = ContentAlignment.MiddleCenter; RowHeader.MakeReadOnly(); }
/// <summary> /// Initializes a new instance of the <see cref="Header"/> class. /// </summary> /// <remarks> /// Copy Constructor. This method duplicates all the reference field (Image, Font, StringFormat) creating a new instance. /// </remarks> /// <param name="source">The source.</param> /// <param name="isReadOnly">if set to <c>true</c> is read only.</param> public Header(Header source, bool isReadOnly) : base(source, isReadOnly) { this.borderStyle = source.borderStyle; this.headerTopLeftWidth = source.headerTopLeftWidth; this.headerBottomRightWidth = source.headerBottomRightWidth; this.headerLightColor = source.headerLightColor; this.headerShadowColor = source.headerShadowColor; this.ExpandedCell = false; }