FlexPivot for WinForms
DrawOutlineButton(DrawCellFlags) メソッド

C1.Win.C1FlexGrid.4.5.2 アセンブリ > C1.Win.C1FlexGrid 名前空間 > OwnerDrawOutlineButtonEventArgs クラス > DrawOutlineButton メソッド : DrawOutlineButton(DrawCellFlags) メソッド
DrawCellFlags that specifies the parts of the outline button.
Causes the grid to paint parts of the outline button (background, foreground, border, etc.)
シンタックス
'宣言
 
Public Overloads Sub DrawOutlineButton( _
   ByVal flags As DrawCellFlags _
) 
public void DrawOutlineButton( 
   DrawCellFlags flags
)

パラメータ

flags
DrawCellFlags that specifies the parts of the outline button.
解説

This method is typically called in C1.Win.C1FlexGrid.C1FlexGridBase.DrawOutlineButton(System.Drawing.Graphics,System.Int32,System.Int32,C1.Win.C1FlexGrid.Util.Styles.Style,System.Drawing.Rectangle,System.String,System.Drawing.Image,C1.Win.C1FlexGrid.DrawCellFlags) handlers when the code intends to draw some elements of the outline button but not everything.

For example, the code may want to draw a custom border only. In this case, it could call e.DrawOutlineButton(DrawCellFlags.Background | DrawCellFlags.Content) to draw the cell background and content, and later draw the custom border.

If the owner-draw code draws the entire outline button (including the background), then there's no need to call e.DrawOutlineButton at all.

参照

OwnerDrawOutlineButtonEventArgs クラス
OwnerDrawOutlineButtonEventArgs メンバ
オーバーロード一覧