GridButton.Paint Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Перегрузки
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)
Параметры
- g
- Graphics
- 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)
Параметры
- g
- Graphics
- 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)
Параметры
- g
- Graphics
- 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)
Параметры
- g
- Graphics
- 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)
Параметры
- g
- Graphics
- 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)
Параметры
- g
- Graphics
- state
- ButtonState
- text
- String
- bmp
- Bitmap
- contentsAlignment
- HorizontalAlignment
- tbLayout
- TextBitmapLayout
- bEnabled
- Boolean
- textFont
- Font
- textBrush
- SolidBrush
- sFormat
- TextFormatFlags
- bRtl
- Boolean
- buttonType
- GridButtonType