Property | Type | Description | |
---|---|---|---|
ClearState | void |
Method | Description | |
---|---|---|
ApplyCellPadding ( |
Change the bounds of the given rectangle to take any cell padding into account
|
|
DrawText ( |
Draw the given text and optional image in the "normal" fashion
|
|
GetBackgroundColor ( ) : Color |
Return the Color that is the background color for this item's cell
|
|
GetEditRectangle ( |
Calculate the edit rectangle
|
|
GetForegroundColor ( ) : Color |
Return the color to be used for text in this cell
|
|
HitTest ( BrightIdeasSoftware.OlvListViewHitTestInfo hti, int x, int y ) : void |
Calculate which part of this cell was hit
|
|
OptionalRender ( |
Draw our data into the given rectangle using the given graphics context. Subclasses should override this method. |
|
Render ( |
Draw our data into the given rectangle using the given graphics context. Subclasses should override this method if they never want to fall back on the default processing |
|
RenderItem ( |
Render the whole item in a non-details view.
|
|
RenderSubItem ( |
Render one cell
|
Method | Description | |
---|---|---|
AlignHorizontally ( |
Calculate the left edge of the rectangle that aligns the outer rectangle with the inner one according to this renderer's horizontal alignement
|
|
AlignRectangle ( |
Align the second rectangle with the first rectangle, according to the alignment of the column
|
|
AlignVertically ( |
Calculate the top of the rectangle that aligns the outer rectangle with the inner rectangle according to this renders vertical alignment
|
|
AlignVertically ( |
Calculate the top of the rectangle that aligns the outer rectangle with a rectangle of the given height according to this renderer's vertical alignment
|
|
CalculateAlignedRectangle ( |
Calculate the space that our rendering will occupy and then align that space with the given rectangle, according to the Column alignment
|
|
CalculateCheckBoxBounds ( |
||
CalculateCheckBoxWidth ( |
How much space will the check box for this cell occupy? Only column 0 can have check boxes. Sub item checkboxes are treated as images |
|
CalculateImageWidth ( |
How much horizontal space will the image of this cell occupy?
|
|
CalculatePaddedAlignedBounds ( |
||
CalculateTextWidth ( |
How much horizontal space will the text of this cell occupy?
|
|
DrawAlignedImage ( |
Draw the given image aligned horizontally within the column. Over tall images are scaled to fit. Over-wide images are truncated. This is by design! |
|
DrawAlignedImageAndText ( |
Draw our subitems image and text
|
|
DrawBackground ( |
Fill in the background of this cell
|
|
DrawCheckBox ( |
Draw the check box of this row
|
|
DrawImage ( |
Draw the given text and optional image in the "normal" fashion
|
|
DrawImageAndText ( |
Draw our subitems image and text
|
|
DrawImages ( |
Draw the given collection of image selectors
|
|
DrawTextGdi ( |
Print the given text in the given rectangle using only GDI routines The native list control uses GDI routines to do its drawing, so using them here makes the owner drawn mode looks more natural. This method doesn't honour the CanWrap setting on the renderer. All text is single line |
|
DrawTextGdiPlus ( |
Print the given text in the given rectangle using normal GDI+ .NET methods Printing to a printer dc has to be done using this method. |
|
GetCheckBoxState ( CheckState checkState ) : CheckBoxState |
Calculate the renderer checkboxstate we need to correctly draw the given state
|
|
GetImage ( ) : Image |
Return the image that should be drawn against this subitem
|
|
GetImage ( Object imageSelector ) : Image |
Return the actual image that should be drawn when keyed by the given image selector. An image selector can be:
|
|
GetImageSelector ( ) : Object |
|
|
GetText ( ) : string |
Return the string that should be drawn within this
|
|
GetTextBackgroundColor ( ) : Color |
Return the Color that is the background color for this item's text
|
|
HandleGetEditRectangle ( |
Handle a HitTest request after all state information has been initialized
|
|
HandleHitTest ( |
Do the actual work of hit testing. Subclasses should override this rather than HitTest()
|
|
StandardGetEditRectangle ( |
This method calculates the bounds of the text within a standard layout (i.e. optional checkbox, optional image, text) This method only works correctly if the state of the renderer has been fully initialized (see BaseRenderer.GetEditRectangle) |
|
StandardHitTest ( |
Perform normal hit testing relative to the given bounds
|
|
StandardRender ( |
Draw the standard "[checkbox] [image] [text]" cell after the state properties have been initialized.
|
Method | Description | |
---|---|---|
ClearState ( ) : void |
protected AlignHorizontally ( |
||
outer | ||
inner | ||
return | int |
protected AlignRectangle ( |
||
outer | The cell's bounds | |
inner | The rectangle to be aligned within the bounds | |
return |
protected AlignVertically ( |
||
outer | ||
inner | ||
return | int |
protected AlignVertically ( |
||
outer | ||
innerHeight | int | |
return | int |
public ApplyCellPadding ( |
||
r | ||
return |
protected CalculateAlignedRectangle ( |
||
g | ||
r | ||
return |
protected CalculateCheckBoxBounds ( |
||
g | ||
cellBounds | ||
return |
protected CalculateCheckBoxWidth ( |
||
g | ||
return | int |
protected CalculateImageWidth ( |
||
g | ||
imageSelector | object | |
return | int |
protected CalculatePaddedAlignedBounds ( |
||
g | ||
bounds | ||
preferredSize | ||
return |
protected CalculateTextWidth ( |
||
g | ||
txt | string | |
return | int |
protected DrawAlignedImage ( |
||
g | Graphics context to use for drawing | |
r | Bounds of the cell | |
image | Image | The image to be drawn |
return | void |
protected DrawAlignedImageAndText ( |
||
g | Graphics context to use for drawing | |
r | Bounds of the cell | |
return | void |
protected DrawBackground ( |
||
g | Graphics context to use for drawing | |
r | Bounds of the cell | |
return | void |
protected DrawCheckBox ( |
||
g | Graphics context to use for drawing | |
r | Bounds of the cell | |
return | int |
protected DrawImage ( |
||
g | Graphics context to use for drawing | |
r | Bounds of the cell | |
imageSelector | Object | The optional image to be drawn |
return | int |
protected DrawImageAndText ( |
||
g | Graphics context to use for drawing | |
r | Bounds of the cell | |
return | void |
protected DrawImages ( |
||
g | ||
r | ||
imageSelectors | ICollection | |
return | int |
public DrawText ( |
||
g | Graphics context to use for drawing | |
r | Bounds of the cell | |
txt | String | The string to be drawn |
return | void |
protected DrawTextGdi ( |
||
g | ||
r | ||
txt | String | |
return | void |
protected DrawTextGdiPlus ( |
||
g | ||
r | ||
txt | String | |
return | void |
protected GetCheckBoxState ( CheckState checkState ) : CheckBoxState | ||
checkState | CheckState | |
return | CheckBoxState |
public GetEditRectangle ( |
||
g | ||
cellBounds | ||
item | BrightIdeasSoftware.OLVListItem | |
subItemIndex | int | |
preferredSize | ||
return |
protected GetImage ( Object imageSelector ) : Image | ||
imageSelector | Object | The value that indicates the image to be used |
return | Image |
protected HandleGetEditRectangle ( |
||
g | ||
cellBounds | ||
item | BrightIdeasSoftware.OLVListItem | |
subItemIndex | int | |
preferredSize | ||
return |
protected HandleHitTest ( |
||
g | ||
hti | BrightIdeasSoftware.OlvListViewHitTestInfo | |
x | int | |
y | int | |
return | void |
public HitTest ( BrightIdeasSoftware.OlvListViewHitTestInfo hti, int x, int y ) : void | ||
hti | BrightIdeasSoftware.OlvListViewHitTestInfo | |
x | int | |
y | int | |
return | void |
public OptionalRender ( |
||
g | The graphics context that should be used for drawing | |
r | The bounds of the subitem cell | |
return | bool |
public Render ( |
||
g | The graphics context that should be used for drawing | |
r | The bounds of the subitem cell | |
return | void |
public RenderItem ( |
||
e | ||
g | ||
itemBounds | ||
rowObject | object | |
return | bool |
public RenderSubItem ( |
||
e | ||
g | ||
cellBounds | ||
rowObject | object | |
return | bool |
protected StandardGetEditRectangle ( |
||
g | ||
cellBounds | ||
preferredSize | ||
return |
protected StandardHitTest ( |
||
g | ||
hti | BrightIdeasSoftware.OlvListViewHitTestInfo | |
bounds | ||
x | int | |
y | int | |
return | void |
protected StandardRender ( |
||
g | ||
r | ||
return | void |