GridButton.Paint 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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);
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);
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);
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);
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);
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);
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