Поделиться через


GridButton.Paint Метод

Определение

Перегрузки

Paint(Graphics, Rectangle, ButtonState, String, Bitmap, HorizontalAlignment, TextBitmapLayout, Boolean)
Paint(Graphics, Rectangle, ButtonState, String, Bitmap, HorizontalAlignment, TextBitmapLayout, Boolean, GridButtonType)
Paint(Graphics, Rectangle, ButtonState, String, Bitmap, HorizontalAlignment, TextBitmapLayout, Boolean, Font, Brush, StringFormat, Boolean)
Paint(Graphics, Rectangle, ButtonState, String, Bitmap, HorizontalAlignment, TextBitmapLayout, Boolean, Font, SolidBrush, TextFormatFlags, Boolean)
Paint(Graphics, Rectangle, ButtonState, String, Bitmap, HorizontalAlignment, TextBitmapLayout, Boolean, Font, Brush, StringFormat, Boolean, GridButtonType)
Paint(Graphics, Rectangle, ButtonState, String, Bitmap, HorizontalAlignment, TextBitmapLayout, Boolean, Font, SolidBrush, TextFormatFlags, Boolean, GridButtonType)

Paint(Graphics, Rectangle, ButtonState, String, Bitmap, HorizontalAlignment, TextBitmapLayout, Boolean)

public:
 void Paint(System::Drawing::Graphics ^ g, System::Drawing::Rectangle r, System::Windows::Forms::ButtonState state, System::String ^ text, System::Drawing::Bitmap ^ bmp, System::Windows::Forms::HorizontalAlignment contentsAlignment, Microsoft::ReportingServices::QueryDesigners::TextBitmapLayout tbLayout, bool bEnabled);
public void Paint (System.Drawing.Graphics g, System.Drawing.Rectangle r, System.Windows.Forms.ButtonState state, string text, System.Drawing.Bitmap bmp, System.Windows.Forms.HorizontalAlignment contentsAlignment, Microsoft.ReportingServices.QueryDesigners.TextBitmapLayout tbLayout, bool bEnabled);
member this.Paint : System.Drawing.Graphics * System.Drawing.Rectangle * System.Windows.Forms.ButtonState * string * System.Drawing.Bitmap * System.Windows.Forms.HorizontalAlignment * Microsoft.ReportingServices.QueryDesigners.TextBitmapLayout * bool -> unit
Public Sub Paint (g As Graphics, r As Rectangle, state As ButtonState, text As String, bmp As Bitmap, contentsAlignment As HorizontalAlignment, tbLayout As TextBitmapLayout, bEnabled As Boolean)

Параметры

state
ButtonState
text
String
bmp
Bitmap
contentsAlignment
HorizontalAlignment
tbLayout
TextBitmapLayout
bEnabled
Boolean

Применяется к

Paint(Graphics, Rectangle, ButtonState, String, Bitmap, HorizontalAlignment, TextBitmapLayout, Boolean, GridButtonType)

public:
 void Paint(System::Drawing::Graphics ^ g, System::Drawing::Rectangle r, System::Windows::Forms::ButtonState state, System::String ^ text, System::Drawing::Bitmap ^ bmp, System::Windows::Forms::HorizontalAlignment contentsAlignment, Microsoft::ReportingServices::QueryDesigners::TextBitmapLayout tbLayout, bool bEnabled, Microsoft::ReportingServices::QueryDesigners::GridButtonType buttonType);
public void Paint (System.Drawing.Graphics g, System.Drawing.Rectangle r, System.Windows.Forms.ButtonState state, string text, System.Drawing.Bitmap bmp, System.Windows.Forms.HorizontalAlignment contentsAlignment, Microsoft.ReportingServices.QueryDesigners.TextBitmapLayout tbLayout, bool bEnabled, Microsoft.ReportingServices.QueryDesigners.GridButtonType buttonType);
member this.Paint : System.Drawing.Graphics * System.Drawing.Rectangle * System.Windows.Forms.ButtonState * string * System.Drawing.Bitmap * System.Windows.Forms.HorizontalAlignment * Microsoft.ReportingServices.QueryDesigners.TextBitmapLayout * bool * Microsoft.ReportingServices.QueryDesigners.GridButtonType -> unit
Public Sub Paint (g As Graphics, r As Rectangle, state As ButtonState, text As String, bmp As Bitmap, contentsAlignment As HorizontalAlignment, tbLayout As TextBitmapLayout, bEnabled As Boolean, buttonType As GridButtonType)

Параметры

state
ButtonState
text
String
bmp
Bitmap
contentsAlignment
HorizontalAlignment
tbLayout
TextBitmapLayout
bEnabled
Boolean
buttonType
GridButtonType

Применяется к

Paint(Graphics, Rectangle, ButtonState, String, Bitmap, HorizontalAlignment, TextBitmapLayout, Boolean, Font, Brush, StringFormat, Boolean)

public:
 static void Paint(System::Drawing::Graphics ^ g, System::Drawing::Rectangle r, System::Windows::Forms::ButtonState state, System::String ^ text, System::Drawing::Bitmap ^ bmp, System::Windows::Forms::HorizontalAlignment contentsAlignment, Microsoft::ReportingServices::QueryDesigners::TextBitmapLayout tbLayout, bool bEnabled, System::Drawing::Font ^ textFont, System::Drawing::Brush ^ textBrush, System::Drawing::StringFormat ^ sFormat, bool bRtl);
public static void Paint (System.Drawing.Graphics g, System.Drawing.Rectangle r, System.Windows.Forms.ButtonState state, string text, System.Drawing.Bitmap bmp, System.Windows.Forms.HorizontalAlignment contentsAlignment, Microsoft.ReportingServices.QueryDesigners.TextBitmapLayout tbLayout, bool bEnabled, System.Drawing.Font textFont, System.Drawing.Brush textBrush, System.Drawing.StringFormat sFormat, bool bRtl);
static member Paint : System.Drawing.Graphics * System.Drawing.Rectangle * System.Windows.Forms.ButtonState * string * System.Drawing.Bitmap * System.Windows.Forms.HorizontalAlignment * Microsoft.ReportingServices.QueryDesigners.TextBitmapLayout * bool * System.Drawing.Font * System.Drawing.Brush * System.Drawing.StringFormat * bool -> unit
Public Shared Sub Paint (g As Graphics, r As Rectangle, state As ButtonState, text As String, bmp As Bitmap, contentsAlignment As HorizontalAlignment, tbLayout As TextBitmapLayout, bEnabled As Boolean, textFont As Font, textBrush As Brush, sFormat As StringFormat, bRtl As Boolean)

Параметры

state
ButtonState
text
String
bmp
Bitmap
contentsAlignment
HorizontalAlignment
tbLayout
TextBitmapLayout
bEnabled
Boolean
textFont
Font
textBrush
Brush
sFormat
StringFormat
bRtl
Boolean

Применяется к

Paint(Graphics, Rectangle, ButtonState, String, Bitmap, HorizontalAlignment, TextBitmapLayout, Boolean, Font, SolidBrush, TextFormatFlags, Boolean)

public:
 static void Paint(System::Drawing::Graphics ^ g, System::Drawing::Rectangle r, System::Windows::Forms::ButtonState state, System::String ^ text, System::Drawing::Bitmap ^ bmp, System::Windows::Forms::HorizontalAlignment contentsAlignment, Microsoft::ReportingServices::QueryDesigners::TextBitmapLayout tbLayout, bool bEnabled, System::Drawing::Font ^ textFont, System::Drawing::SolidBrush ^ textBrush, System::Windows::Forms::TextFormatFlags sFormat, bool bRtl);
public static void Paint (System.Drawing.Graphics g, System.Drawing.Rectangle r, System.Windows.Forms.ButtonState state, string text, System.Drawing.Bitmap bmp, System.Windows.Forms.HorizontalAlignment contentsAlignment, Microsoft.ReportingServices.QueryDesigners.TextBitmapLayout tbLayout, bool bEnabled, System.Drawing.Font textFont, System.Drawing.SolidBrush textBrush, System.Windows.Forms.TextFormatFlags sFormat, bool bRtl);
static member Paint : System.Drawing.Graphics * System.Drawing.Rectangle * System.Windows.Forms.ButtonState * string * System.Drawing.Bitmap * System.Windows.Forms.HorizontalAlignment * Microsoft.ReportingServices.QueryDesigners.TextBitmapLayout * bool * System.Drawing.Font * System.Drawing.SolidBrush * System.Windows.Forms.TextFormatFlags * bool -> unit
Public Shared Sub Paint (g As Graphics, r As Rectangle, state As ButtonState, text As String, bmp As Bitmap, contentsAlignment As HorizontalAlignment, tbLayout As TextBitmapLayout, bEnabled As Boolean, textFont As Font, textBrush As SolidBrush, sFormat As TextFormatFlags, bRtl As Boolean)

Параметры

state
ButtonState
text
String
bmp
Bitmap
contentsAlignment
HorizontalAlignment
tbLayout
TextBitmapLayout
bEnabled
Boolean
textFont
Font
textBrush
SolidBrush
sFormat
TextFormatFlags
bRtl
Boolean

Применяется к

Paint(Graphics, Rectangle, ButtonState, String, Bitmap, HorizontalAlignment, TextBitmapLayout, Boolean, Font, Brush, StringFormat, Boolean, GridButtonType)

public:
 static void Paint(System::Drawing::Graphics ^ g, System::Drawing::Rectangle r, System::Windows::Forms::ButtonState state, System::String ^ text, System::Drawing::Bitmap ^ bmp, System::Windows::Forms::HorizontalAlignment contentsAlignment, Microsoft::ReportingServices::QueryDesigners::TextBitmapLayout tbLayout, bool bEnabled, System::Drawing::Font ^ textFont, System::Drawing::Brush ^ textBrush, System::Drawing::StringFormat ^ sFormat, bool bRtl, Microsoft::ReportingServices::QueryDesigners::GridButtonType buttonType);
public static void Paint (System.Drawing.Graphics g, System.Drawing.Rectangle r, System.Windows.Forms.ButtonState state, string text, System.Drawing.Bitmap bmp, System.Windows.Forms.HorizontalAlignment contentsAlignment, Microsoft.ReportingServices.QueryDesigners.TextBitmapLayout tbLayout, bool bEnabled, System.Drawing.Font textFont, System.Drawing.Brush textBrush, System.Drawing.StringFormat sFormat, bool bRtl, Microsoft.ReportingServices.QueryDesigners.GridButtonType buttonType);
static member Paint : System.Drawing.Graphics * System.Drawing.Rectangle * System.Windows.Forms.ButtonState * string * System.Drawing.Bitmap * System.Windows.Forms.HorizontalAlignment * Microsoft.ReportingServices.QueryDesigners.TextBitmapLayout * bool * System.Drawing.Font * System.Drawing.Brush * System.Drawing.StringFormat * bool * Microsoft.ReportingServices.QueryDesigners.GridButtonType -> unit
Public Shared Sub Paint (g As Graphics, r As Rectangle, state As ButtonState, text As String, bmp As Bitmap, contentsAlignment As HorizontalAlignment, tbLayout As TextBitmapLayout, bEnabled As Boolean, textFont As Font, textBrush As Brush, sFormat As StringFormat, bRtl As Boolean, buttonType As GridButtonType)

Параметры

state
ButtonState
text
String
bmp
Bitmap
contentsAlignment
HorizontalAlignment
tbLayout
TextBitmapLayout
bEnabled
Boolean
textFont
Font
textBrush
Brush
sFormat
StringFormat
bRtl
Boolean
buttonType
GridButtonType

Применяется к

Paint(Graphics, Rectangle, ButtonState, String, Bitmap, HorizontalAlignment, TextBitmapLayout, Boolean, Font, SolidBrush, TextFormatFlags, Boolean, GridButtonType)

public:
 static void Paint(System::Drawing::Graphics ^ g, System::Drawing::Rectangle r, System::Windows::Forms::ButtonState state, System::String ^ text, System::Drawing::Bitmap ^ bmp, System::Windows::Forms::HorizontalAlignment contentsAlignment, Microsoft::ReportingServices::QueryDesigners::TextBitmapLayout tbLayout, bool bEnabled, System::Drawing::Font ^ textFont, System::Drawing::SolidBrush ^ textBrush, System::Windows::Forms::TextFormatFlags sFormat, bool bRtl, Microsoft::ReportingServices::QueryDesigners::GridButtonType buttonType);
public static void Paint (System.Drawing.Graphics g, System.Drawing.Rectangle r, System.Windows.Forms.ButtonState state, string text, System.Drawing.Bitmap bmp, System.Windows.Forms.HorizontalAlignment contentsAlignment, Microsoft.ReportingServices.QueryDesigners.TextBitmapLayout tbLayout, bool bEnabled, System.Drawing.Font textFont, System.Drawing.SolidBrush textBrush, System.Windows.Forms.TextFormatFlags sFormat, bool bRtl, Microsoft.ReportingServices.QueryDesigners.GridButtonType buttonType);
static member Paint : System.Drawing.Graphics * System.Drawing.Rectangle * System.Windows.Forms.ButtonState * string * System.Drawing.Bitmap * System.Windows.Forms.HorizontalAlignment * Microsoft.ReportingServices.QueryDesigners.TextBitmapLayout * bool * System.Drawing.Font * System.Drawing.SolidBrush * System.Windows.Forms.TextFormatFlags * bool * Microsoft.ReportingServices.QueryDesigners.GridButtonType -> unit
Public Shared Sub Paint (g As Graphics, r As Rectangle, state As ButtonState, text As String, bmp As Bitmap, contentsAlignment As HorizontalAlignment, tbLayout As TextBitmapLayout, bEnabled As Boolean, textFont As Font, textBrush As SolidBrush, sFormat As TextFormatFlags, bRtl As Boolean, buttonType As GridButtonType)

Параметры

state
ButtonState
text
String
bmp
Bitmap
contentsAlignment
HorizontalAlignment
tbLayout
TextBitmapLayout
bEnabled
Boolean
textFont
Font
textBrush
SolidBrush
sFormat
TextFormatFlags
bRtl
Boolean
buttonType
GridButtonType

Применяется к