Свойство | Type | Description | |
---|---|---|---|
ClearState | void |
Méthode | 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
|
Méthode | 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.
|
Méthode | Description | |
---|---|---|
ClearState ( ) : void |
protected AlignHorizontally ( |
||
outer | ||
inner | ||
Résultat | int |
protected AlignRectangle ( |
||
outer | The cell's bounds | |
inner | The rectangle to be aligned within the bounds | |
Résultat |
protected AlignVertically ( |
||
outer | ||
inner | ||
Résultat | int |
protected AlignVertically ( |
||
outer | ||
innerHeight | int | |
Résultat | int |
public ApplyCellPadding ( |
||
r | ||
Résultat |
protected CalculateAlignedRectangle ( |
||
g | ||
r | ||
Résultat |
protected CalculateCheckBoxBounds ( |
||
g | ||
cellBounds | ||
Résultat |
protected CalculateCheckBoxWidth ( |
||
g | ||
Résultat | int |
protected CalculateImageWidth ( |
||
g | ||
imageSelector | object | |
Résultat | int |
protected CalculatePaddedAlignedBounds ( |
||
g | ||
bounds | ||
preferredSize | ||
Résultat |
protected CalculateTextWidth ( |
||
g | ||
txt | string | |
Résultat | int |
protected DrawAlignedImage ( |
||
g | Graphics context to use for drawing | |
r | Bounds of the cell | |
image | Image | The image to be drawn |
Résultat | void |
protected DrawAlignedImageAndText ( |
||
g | Graphics context to use for drawing | |
r | Bounds of the cell | |
Résultat | void |
protected DrawBackground ( |
||
g | Graphics context to use for drawing | |
r | Bounds of the cell | |
Résultat | void |
protected DrawCheckBox ( |
||
g | Graphics context to use for drawing | |
r | Bounds of the cell | |
Résultat | int |
protected DrawImage ( |
||
g | Graphics context to use for drawing | |
r | Bounds of the cell | |
imageSelector | Object | The optional image to be drawn |
Résultat | int |
protected DrawImageAndText ( |
||
g | Graphics context to use for drawing | |
r | Bounds of the cell | |
Résultat | void |
protected DrawImages ( |
||
g | ||
r | ||
imageSelectors | ICollection | |
Résultat | int |
public DrawText ( |
||
g | Graphics context to use for drawing | |
r | Bounds of the cell | |
txt | String | The string to be drawn |
Résultat | void |
protected DrawTextGdi ( |
||
g | ||
r | ||
txt | String | |
Résultat | void |
protected DrawTextGdiPlus ( |
||
g | ||
r | ||
txt | String | |
Résultat | void |
protected GetCheckBoxState ( CheckState checkState ) : CheckBoxState | ||
checkState | CheckState | |
Résultat | CheckBoxState |
public GetEditRectangle ( |
||
g | ||
cellBounds | ||
item | BrightIdeasSoftware.OLVListItem | |
subItemIndex | int | |
preferredSize | ||
Résultat |
protected GetImage ( Object imageSelector ) : Image | ||
imageSelector | Object | The value that indicates the image to be used |
Résultat | Image |
protected GetTextBackgroundColor ( ) : Color | ||
Résultat | Color |
protected HandleGetEditRectangle ( |
||
g | ||
cellBounds | ||
item | BrightIdeasSoftware.OLVListItem | |
subItemIndex | int | |
preferredSize | ||
Résultat |
protected HandleHitTest ( |
||
g | ||
hti | BrightIdeasSoftware.OlvListViewHitTestInfo | |
x | int | |
y | int | |
Résultat | void |
public HitTest ( BrightIdeasSoftware.OlvListViewHitTestInfo hti, int x, int y ) : void | ||
hti | BrightIdeasSoftware.OlvListViewHitTestInfo | |
x | int | |
y | int | |
Résultat | void |
public OptionalRender ( |
||
g | The graphics context that should be used for drawing | |
r | The bounds of the subitem cell | |
Résultat | bool |
public Render ( |
||
g | The graphics context that should be used for drawing | |
r | The bounds of the subitem cell | |
Résultat | void |
public RenderItem ( |
||
e | ||
g | ||
itemBounds | ||
rowObject | object | |
Résultat | bool |
public RenderSubItem ( |
||
e | ||
g | ||
cellBounds | ||
rowObject | object | |
Résultat | bool |
protected StandardGetEditRectangle ( |
||
g | ||
cellBounds | ||
preferredSize | ||
Résultat |
protected StandardHitTest ( |
||
g | ||
hti | BrightIdeasSoftware.OlvListViewHitTestInfo | |
bounds | ||
x | int | |
y | int | |
Résultat | void |
protected StandardRender ( |
||
g | ||
r | ||
Résultat | void |