[]
        
(Showing Draft Content)

FarPoint.Win.Spread.CellType.ColumnHeaderRenderer

ColumnHeaderRenderer Class

Represents the painter of column header cells.

Namespace: FarPoint.Win.Spread.CellType
Assembly: FarPoint.Win.Spread.dll
Syntax
[TypeConverter(typeof(_uf))]
public class ColumnHeaderRenderer : IRenderer, IHeaderImages, ISerializeSupport, IWordWrapSupport, ISerializable, IShrinkToFitSupport, IPdfSupport, IDisposable
<TypeConverter(GetType(_uf))>
Public Class ColumnHeaderRenderer
    Implements IRenderer, IHeaderImages, ISerializeSupport, IWordWrapSupport, ISerializable, IShrinkToFitSupport, IPdfSupport, IDisposable

Constructors

Name Description
ColumnHeaderRenderer()

Creates a new column header renderer.

ColumnHeaderRenderer(SerializationInfo, StreamingContext)

Creates a new painter of the column header cells from serialization.

Fields

Name Description
appearance

Creates the appearance.

gridLineInsets
headerTheme

Creates a visual style (theme) for the header.

Properties

Name Description
BackColor2

Gets or sets the secondary color used when drawing a gradient button.

BackgroundStyle

Gets or sets how the background is rendered.

DarkColor

Gets or sets the color to draw the three-dimensional outside border of the button.

GradientMode

Gets or sets the drawing style of a gradient button.

HorizontalAlignment

Gets or sets the horizontal alignment of text in the button.

HotkeyPrefix

Gets or sets whether the ampersand character underlines text.

Images

Gets or sets user override images for the headers. Use the SpreadView static image constants for the array indexes.

LightColor

Gets or sets the color to draw the three-dimensional inside border of the button.

Name
Picture

Gets or sets the image displayed in the button.

PictureDown
ShadowSize

Gets or sets the size of shadow around the button.

ShrinkToFit

Gets or sets whether a drop-down button is displayed in the cell.

TextAlign

Gets or sets how text is aligned relative to the picture in the button.

TextIndent

Gets or sets the text indent.

TextOrientation

Gets or sets how text orients itself when painting the button.

TextRotationAngle

Gets or sets the text rotation angle.

VerticalAlignment

Gets or sets the vertical alignment of text in the button.

WordWrap2

Gets or sets whether the text that does not fit on one line wraps to multiple lines within the button.

Methods

Name Description
CanBeOverflown()

Determines whether data in adjacent cells can overflow these specific cells.

CanOverflow()

Determines whether data in cells can overflow into adjacent cells.

Dispose()

Dispose this object.

Dispose(bool)

Internal use only.

GetFilterSortButtonSize(float)

Get filter sort button size.

GetImageBox(Graphics, Rectangle, Font, HorizontalAlignment, VerticalAlignment, string, ButtonTextAlign, Image)

Returns information about the image.

GetImageBox(Graphics, Rectangle, Font, HorizontalAlignment, VerticalAlignment, string, ButtonTextAlign, Image, int)

Returns information about the image.

GetObjectData(SerializationInfo, StreamingContext)

Populates a SerializationInfo with the data needed to serialize the target object.

GetPreferredSize(Graphics, Size, Appearance, object, float)

Gets the preferred (maximum required) size of the cell for the renderer control.

GetSelectorEditingButtonSize(float)

Gets the selection edit button size.

PaintBackground(Graphics, ref bool, bool, bool, bool, Rectangle, int, int, VisualStyles, bool, Color)

Paints the background of the enhanced header cell.

PaintCell(PdfGraphics, RectangleF, Appearance, object, bool, bool, float)

Paints (prints) the cell to PDF.

PaintCell(Graphics, Rectangle, Appearance, object, bool, bool, float)

Paints the column header cell when not in edit mode to the specified graphics interface with the specified appearance settings.

PaintFilterIndicator(Graphics, Rectangle, Appearance, float)

Paints the filtering indicator in the column header with the specified appearance settings.

PaintHeader(Graphics, Rectangle, Rectangle, Color, Color, Font, HorizontalAlignment, VerticalAlignment, bool, bool, string, string, ButtonTextAlign, TextOrientation, bool, int, Color, Color, Image, Image, bool, HotkeyPrefix, VisualStyles, bool, bool, Appearance, double)

Paints the column header cell.

PaintHeader(Graphics, Rectangle, Rectangle, Color, Color, Font, HorizontalAlignment, VerticalAlignment, bool, bool, string, string, ButtonTextAlign, TextOrientation, bool, int, Color, Color, Image, Image, bool, HotkeyPrefix, VisualStyles, bool, bool, Appearance, double, float)

Paints the column header cell.

PaintRowEditingSelector(Graphics, Rectangle, Appearance, float)

Paints the row header selector in the row header of the selected row.

PaintRowSelector(Graphics, Rectangle, Appearance, float)

Paints the row header selector in the row header of the selected row.

PaintSortIndicator(Graphics, Rectangle, Appearance, float)

Paints the sorting indicator in the column header with the specified appearance settings.

Serialize(XmlTextWriter)

Internal use only. Saves the object to XML.

ToHorizontalAlignment(CellHorizontalAlignment)

Converts a FarPoint.Win.Spread.CellHorizontalAlignment value to the corresponding FarPoint.Win.HorizontalAlignment value.

ToString()

Returns the name of the renderer.

ToVerticalAlignment(CellVerticalAlignment)

Converts a FarPoint.Win.Spread.CellVerticalAlignment value to the corresponding FarPoint.Win.VerticalAlignment value.