프로퍼티 | 타입 | 설명 | |
---|---|---|---|
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 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 |