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