TabRenderer.DrawTabItem Yöntem

Tanım

Sekme denetimindeki bir sayfayı seçmek için kullanılan bir sekme çizer.

Aşırı Yüklemeler

DrawTabItem(Graphics, Rectangle, TabItemState)

Belirtilen durumda ve sınırlarda bir sekme çizer.

DrawTabItem(Graphics, Rectangle, Boolean, TabItemState)

Belirtilen durumda ve sınırlarda ve isteğe bağlı bir odak dikdörtgeniyle bir sekme çizer.

DrawTabItem(Graphics, Rectangle, String, Font, TabItemState)

Belirtilen durumda ve sınırlarda ve belirtilen metinle bir sekme çizer.

DrawTabItem(Graphics, Rectangle, Image, Rectangle, Boolean, TabItemState)

Belirtilen durumda ve sınırlarda, belirtilen görüntüyle ve isteğe bağlı bir odak dikdörtgeniyle bir sekme çizer.

DrawTabItem(Graphics, Rectangle, String, Font, Boolean, TabItemState)

Belirtilen durumda ve sınırlarda, belirtilen metinle ve isteğe bağlı bir odak dikdörtgeniyle bir sekme çizer.

DrawTabItem(Graphics, Rectangle, String, Font, TextFormatFlags, Boolean, TabItemState)

Belirtilen durumda ve sınırlarda, belirtilen metin ve metin biçimlendirmesiyle ve isteğe bağlı bir odak dikdörtgeniyle bir sekme çizer.

DrawTabItem(Graphics, Rectangle, String, Font, Image, Rectangle, Boolean, TabItemState)

Belirtilen durumda ve sınırlarda, belirtilen metin ve görüntüyle ve isteğe bağlı bir odak dikdörtgeniyle bir sekme çizer.

DrawTabItem(Graphics, Rectangle, String, Font, TextFormatFlags, Image, Rectangle, Boolean, TabItemState)

Belirtilen durumda ve sınırlarda bir sekme çizer; belirtilen metin, metin biçimlendirmesi ve resimle; ve isteğe bağlı bir odak dikdörtgeni ile.

DrawTabItem(Graphics, Rectangle, TabItemState)

Belirtilen durumda ve sınırlarda bir sekme çizer.

public:
 static void DrawTabItem(System::Drawing::Graphics ^ g, System::Drawing::Rectangle bounds, System::Windows::Forms::VisualStyles::TabItemState state);
public static void DrawTabItem (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, System.Windows.Forms.VisualStyles.TabItemState state);
static member DrawTabItem : System.Drawing.Graphics * System.Drawing.Rectangle * System.Windows.Forms.VisualStyles.TabItemState -> unit
Public Shared Sub DrawTabItem (g As Graphics, bounds As Rectangle, state As TabItemState)

Parametreler

g
Graphics

Sekmeyi Graphics çizmek için kullanılan.

bounds
Rectangle

Sekmenin Rectangle sınırlarını belirten.

state
TabItemState

Sekmenin TabItemState görsel durumunu belirten değerlerden biri.

Özel durumlar

İşletim sistemi görsel stilleri desteklemez.

-veya-

Görsel stiller, işletim sistemindeki kullanıcı tarafından devre dışı bırakılır.

-veya-

Görsel stiller uygulama pencerelerinin istemci alanına uygulanmaz.

Açıklamalar

Bu yöntemi çağırmadan önce özelliğinin IsSupported döndürdüğünü truedoğrulamanız gerekir.

Şunlara uygulanır

DrawTabItem(Graphics, Rectangle, Boolean, TabItemState)

Belirtilen durumda ve sınırlarda ve isteğe bağlı bir odak dikdörtgeniyle bir sekme çizer.

public:
 static void DrawTabItem(System::Drawing::Graphics ^ g, System::Drawing::Rectangle bounds, bool focused, System::Windows::Forms::VisualStyles::TabItemState state);
public static void DrawTabItem (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, bool focused, System.Windows.Forms.VisualStyles.TabItemState state);
static member DrawTabItem : System.Drawing.Graphics * System.Drawing.Rectangle * bool * System.Windows.Forms.VisualStyles.TabItemState -> unit
Public Shared Sub DrawTabItem (g As Graphics, bounds As Rectangle, focused As Boolean, state As TabItemState)

Parametreler

g
Graphics

Sekmeyi Graphics çizmek için kullanılan.

bounds
Rectangle

Sekmenin Rectangle sınırlarını belirten.

focused
Boolean

true odak dikdörtgeni çizmek için; aksi takdirde , false.

state
TabItemState

Sekmenin TabItemState görsel durumunu belirten değerlerden biri.

Özel durumlar

İşletim sistemi görsel stilleri desteklemez.

-veya-

Görsel stiller, işletim sistemindeki kullanıcı tarafından devre dışı bırakılır.

-veya-

Görsel stiller uygulama pencerelerinin istemci alanına uygulanmaz.

Açıklamalar

Bu yöntemi çağırmadan önce özelliğinin IsSupported döndürdüğünü truedoğrulamanız gerekir.

Şunlara uygulanır

DrawTabItem(Graphics, Rectangle, String, Font, TabItemState)

Belirtilen durumda ve sınırlarda ve belirtilen metinle bir sekme çizer.

public:
 static void DrawTabItem(System::Drawing::Graphics ^ g, System::Drawing::Rectangle bounds, System::String ^ tabItemText, System::Drawing::Font ^ font, System::Windows::Forms::VisualStyles::TabItemState state);
public static void DrawTabItem (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, string tabItemText, System.Drawing.Font font, System.Windows.Forms.VisualStyles.TabItemState state);
public static void DrawTabItem (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, string? tabItemText, System.Drawing.Font? font, System.Windows.Forms.VisualStyles.TabItemState state);
static member DrawTabItem : System.Drawing.Graphics * System.Drawing.Rectangle * string * System.Drawing.Font * System.Windows.Forms.VisualStyles.TabItemState -> unit
Public Shared Sub DrawTabItem (g As Graphics, bounds As Rectangle, tabItemText As String, font As Font, state As TabItemState)

Parametreler

g
Graphics

Sekmeyi Graphics çizmek için kullanılan.

bounds
Rectangle

Sekmenin Rectangle sınırlarını belirten.

tabItemText
String

String Sekmede çizecek olan.

font
Font

Font için uygulanacak tabItemText.

state
TabItemState

Sekmenin TabItemState görsel durumunu belirten değerlerden biri.

Özel durumlar

İşletim sistemi görsel stilleri desteklemez.

-veya-

Görsel stiller, işletim sistemindeki kullanıcı tarafından devre dışı bırakılır.

-veya-

Görsel stiller uygulama pencerelerinin istemci alanına uygulanmaz.

Açıklamalar

Bu yöntemi çağırmadan önce özelliğinin IsSupported döndürdüğünü truedoğrulamanız gerekir.

Şunlara uygulanır

DrawTabItem(Graphics, Rectangle, Image, Rectangle, Boolean, TabItemState)

Belirtilen durumda ve sınırlarda, belirtilen görüntüyle ve isteğe bağlı bir odak dikdörtgeniyle bir sekme çizer.

public:
 static void DrawTabItem(System::Drawing::Graphics ^ g, System::Drawing::Rectangle bounds, System::Drawing::Image ^ image, System::Drawing::Rectangle imageRectangle, bool focused, System::Windows::Forms::VisualStyles::TabItemState state);
public static void DrawTabItem (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, System.Drawing.Image image, System.Drawing.Rectangle imageRectangle, bool focused, System.Windows.Forms.VisualStyles.TabItemState state);
static member DrawTabItem : System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Image * System.Drawing.Rectangle * bool * System.Windows.Forms.VisualStyles.TabItemState -> unit
Public Shared Sub DrawTabItem (g As Graphics, bounds As Rectangle, image As Image, imageRectangle As Rectangle, focused As Boolean, state As TabItemState)

Parametreler

g
Graphics

Sekmeyi Graphics çizmek için kullanılan.

bounds
Rectangle

Sekmenin Rectangle sınırlarını belirten.

image
Image

Image Sekmede çizecek olan.

imageRectangle
Rectangle

sınırlarını Rectangle belirten değeridir image.

focused
Boolean

true odak dikdörtgeni çizmek için; aksi takdirde , false.

state
TabItemState

Sekmenin TabItemState görsel durumunu belirten değerlerden biri.

Özel durumlar

İşletim sistemi görsel stilleri desteklemez.

-veya-

Görsel stiller, işletim sistemindeki kullanıcı tarafından devre dışı bırakılır.

-veya-

Görsel stiller uygulama pencerelerinin istemci alanına uygulanmaz.

Açıklamalar

Bu yöntemi çağırmadan önce özelliğinin IsSupported döndürdüğünü truedoğrulamanız gerekir.

Şunlara uygulanır

DrawTabItem(Graphics, Rectangle, String, Font, Boolean, TabItemState)

Belirtilen durumda ve sınırlarda, belirtilen metinle ve isteğe bağlı bir odak dikdörtgeniyle bir sekme çizer.

public:
 static void DrawTabItem(System::Drawing::Graphics ^ g, System::Drawing::Rectangle bounds, System::String ^ tabItemText, System::Drawing::Font ^ font, bool focused, System::Windows::Forms::VisualStyles::TabItemState state);
public static void DrawTabItem (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, string tabItemText, System.Drawing.Font font, bool focused, System.Windows.Forms.VisualStyles.TabItemState state);
public static void DrawTabItem (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, string? tabItemText, System.Drawing.Font? font, bool focused, System.Windows.Forms.VisualStyles.TabItemState state);
static member DrawTabItem : System.Drawing.Graphics * System.Drawing.Rectangle * string * System.Drawing.Font * bool * System.Windows.Forms.VisualStyles.TabItemState -> unit
Public Shared Sub DrawTabItem (g As Graphics, bounds As Rectangle, tabItemText As String, font As Font, focused As Boolean, state As TabItemState)

Parametreler

g
Graphics

Sekmeyi Graphics çizmek için kullanılan.

bounds
Rectangle

Sekmenin Rectangle sınırlarını belirten.

tabItemText
String

String Sekmede çizecek olan.

font
Font

Font için uygulanacak tabItemText.

focused
Boolean

true odak dikdörtgeni çizmek için; aksi takdirde , false.

state
TabItemState

Sekmenin TabItemState görsel durumunu belirten değerlerden biri.

Özel durumlar

İşletim sistemi görsel stilleri desteklemez.

-veya-

Görsel stiller, işletim sistemindeki kullanıcı tarafından devre dışı bırakılır.

-veya-

Görsel stiller uygulama pencerelerinin istemci alanına uygulanmaz.

Örnekler

Aşağıdaki kod örneği, bir sekme öğesi çizmek için özel denetimin OnPaint yöntemindeki yöntemini kullanırDrawTabItem(Graphics, Rectangle, String, Font, Boolean, TabItemState). Bu kod örneği, sınıfı için TabRenderer sağlanan daha büyük bir örneğin parçasıdır.

    // Draw the tab page and the tab items.
protected:
    virtual void OnPaint(PaintEventArgs^ e) override
    {
        __super::OnPaint(e);

        if (!TabRenderer::IsSupported)
        {
            this->Parent->Text = "CustomTabControl Disabled";
            return;
        }

        TabRenderer::DrawTabPage(e->Graphics, tabPageRectangle);
        TabRenderer::DrawTabItem(e->Graphics, tabItemRectangle1,
            tab1Text, this->Font, tab1Focused, tab1State);
        TabRenderer::DrawTabItem(e->Graphics, tabItemRectangle2,
            tab2Text, this->Font, tab2Focused, tab2State);

        this->Parent->Text = "CustomTabControl Enabled";
    }
// Draw the tab page and the tab items.
protected override void OnPaint(PaintEventArgs e)
{
    base.OnPaint(e);

    if (!TabRenderer.IsSupported)
    {
        this.Parent.Text = "CustomTabControl Disabled";
        return;
    }

    TabRenderer.DrawTabPage(e.Graphics, tabPageRectangle);
    TabRenderer.DrawTabItem(e.Graphics, tabItemRectangle1,
        tab1Text, this.Font, tab1Focused, tab1State);
    TabRenderer.DrawTabItem(e.Graphics, tabItemRectangle2,
        tab2Text, this.Font, tab2Focused, tab2State);

    this.Parent.Text = "CustomTabControl Enabled";
}
' Draw the tab page and the tab items.
Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs)
    MyBase.OnPaint(e)

    If Not TabRenderer.IsSupported Then
        Me.Parent.Text = "CustomTabControl Disabled"
        Return
    End If

    TabRenderer.DrawTabPage(e.Graphics, tabPageRectangle)
    TabRenderer.DrawTabItem(e.Graphics, tabItemRectangle1, _
        tab1Text, Me.Font, tab1Focused, tab1State)
    TabRenderer.DrawTabItem(e.Graphics, tabItemRectangle2, _
        tab2Text, Me.Font, tab2Focused, tab2State)
    Me.Parent.Text = "CustomTabControl Enabled"
End Sub

Açıklamalar

Bu yöntemi çağırmadan önce özelliğinin IsSupported döndürdüğünü truedoğrulamanız gerekir.

Şunlara uygulanır

DrawTabItem(Graphics, Rectangle, String, Font, TextFormatFlags, Boolean, TabItemState)

Belirtilen durumda ve sınırlarda, belirtilen metin ve metin biçimlendirmesiyle ve isteğe bağlı bir odak dikdörtgeniyle bir sekme çizer.

public:
 static void DrawTabItem(System::Drawing::Graphics ^ g, System::Drawing::Rectangle bounds, System::String ^ tabItemText, System::Drawing::Font ^ font, System::Windows::Forms::TextFormatFlags flags, bool focused, System::Windows::Forms::VisualStyles::TabItemState state);
public static void DrawTabItem (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, string tabItemText, System.Drawing.Font font, System.Windows.Forms.TextFormatFlags flags, bool focused, System.Windows.Forms.VisualStyles.TabItemState state);
public static void DrawTabItem (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, string? tabItemText, System.Drawing.Font? font, System.Windows.Forms.TextFormatFlags flags, bool focused, System.Windows.Forms.VisualStyles.TabItemState state);
static member DrawTabItem : System.Drawing.Graphics * System.Drawing.Rectangle * string * System.Drawing.Font * System.Windows.Forms.TextFormatFlags * bool * System.Windows.Forms.VisualStyles.TabItemState -> unit
Public Shared Sub DrawTabItem (g As Graphics, bounds As Rectangle, tabItemText As String, font As Font, flags As TextFormatFlags, focused As Boolean, state As TabItemState)

Parametreler

g
Graphics

Sekmeyi Graphics çizmek için kullanılan.

bounds
Rectangle

Sekmenin Rectangle sınırlarını belirten.

tabItemText
String

String Sekmede çizecek olan.

font
Font

Font için uygulanacak tabItemText.

flags
TextFormatFlags

Değerlerin bit düzeyinde birleşimi TextFormatFlags .

focused
Boolean

true odak dikdörtgeni çizmek için; aksi takdirde , false.

state
TabItemState

Sekmenin TabItemState görsel durumunu belirten değerlerden biri.

Özel durumlar

İşletim sistemi görsel stilleri desteklemez.

-veya-

Görsel stiller, işletim sistemindeki kullanıcı tarafından devre dışı bırakılır.

-veya-

Görsel stiller uygulama pencerelerinin istemci alanına uygulanmaz.

Açıklamalar

Bu yöntemi çağırmadan önce özelliğinin IsSupported döndürdüğünü truedoğrulamanız gerekir.

Şunlara uygulanır

DrawTabItem(Graphics, Rectangle, String, Font, Image, Rectangle, Boolean, TabItemState)

Belirtilen durumda ve sınırlarda, belirtilen metin ve görüntüyle ve isteğe bağlı bir odak dikdörtgeniyle bir sekme çizer.

public:
 static void DrawTabItem(System::Drawing::Graphics ^ g, System::Drawing::Rectangle bounds, System::String ^ tabItemText, System::Drawing::Font ^ font, System::Drawing::Image ^ image, System::Drawing::Rectangle imageRectangle, bool focused, System::Windows::Forms::VisualStyles::TabItemState state);
public static void DrawTabItem (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, string tabItemText, System.Drawing.Font font, System.Drawing.Image image, System.Drawing.Rectangle imageRectangle, bool focused, System.Windows.Forms.VisualStyles.TabItemState state);
public static void DrawTabItem (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, string? tabItemText, System.Drawing.Font? font, System.Drawing.Image image, System.Drawing.Rectangle imageRectangle, bool focused, System.Windows.Forms.VisualStyles.TabItemState state);
static member DrawTabItem : System.Drawing.Graphics * System.Drawing.Rectangle * string * System.Drawing.Font * System.Drawing.Image * System.Drawing.Rectangle * bool * System.Windows.Forms.VisualStyles.TabItemState -> unit
Public Shared Sub DrawTabItem (g As Graphics, bounds As Rectangle, tabItemText As String, font As Font, image As Image, imageRectangle As Rectangle, focused As Boolean, state As TabItemState)

Parametreler

g
Graphics

Sekmeyi Graphics çizmek için kullanılan.

bounds
Rectangle

Sekmenin Rectangle sınırlarını belirten.

tabItemText
String

String Sekmede çizecek olan.

font
Font

Font için uygulanacak tabItemText.

image
Image

Image Sekmede çizecek olan.

imageRectangle
Rectangle

sınırlarını Rectangle belirten değeridir image.

focused
Boolean

true odak dikdörtgeni çizmek için; aksi takdirde , false.

state
TabItemState

Sekmenin TabItemState görsel durumunu belirten değerlerden biri.

Özel durumlar

İşletim sistemi görsel stilleri desteklemez.

-veya-

Görsel stiller, işletim sistemindeki kullanıcı tarafından devre dışı bırakılır.

-veya-

Görsel stiller uygulama pencerelerinin istemci alanına uygulanmaz.

Açıklamalar

Bu yöntemi çağırmadan önce özelliğinin IsSupported döndürdüğünü truedoğrulamanız gerekir.

Şunlara uygulanır

DrawTabItem(Graphics, Rectangle, String, Font, TextFormatFlags, Image, Rectangle, Boolean, TabItemState)

Belirtilen durumda ve sınırlarda bir sekme çizer; belirtilen metin, metin biçimlendirmesi ve resimle; ve isteğe bağlı bir odak dikdörtgeni ile.

public:
 static void DrawTabItem(System::Drawing::Graphics ^ g, System::Drawing::Rectangle bounds, System::String ^ tabItemText, System::Drawing::Font ^ font, System::Windows::Forms::TextFormatFlags flags, System::Drawing::Image ^ image, System::Drawing::Rectangle imageRectangle, bool focused, System::Windows::Forms::VisualStyles::TabItemState state);
public static void DrawTabItem (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, string tabItemText, System.Drawing.Font font, System.Windows.Forms.TextFormatFlags flags, System.Drawing.Image image, System.Drawing.Rectangle imageRectangle, bool focused, System.Windows.Forms.VisualStyles.TabItemState state);
public static void DrawTabItem (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, string? tabItemText, System.Drawing.Font? font, System.Windows.Forms.TextFormatFlags flags, System.Drawing.Image image, System.Drawing.Rectangle imageRectangle, bool focused, System.Windows.Forms.VisualStyles.TabItemState state);
static member DrawTabItem : System.Drawing.Graphics * System.Drawing.Rectangle * string * System.Drawing.Font * System.Windows.Forms.TextFormatFlags * System.Drawing.Image * System.Drawing.Rectangle * bool * System.Windows.Forms.VisualStyles.TabItemState -> unit
Public Shared Sub DrawTabItem (g As Graphics, bounds As Rectangle, tabItemText As String, font As Font, flags As TextFormatFlags, image As Image, imageRectangle As Rectangle, focused As Boolean, state As TabItemState)

Parametreler

g
Graphics

Sekmeyi Graphics çizmek için kullanılan.

bounds
Rectangle

bu sekmenin Rectangle sınırlarını belirtir.

tabItemText
String

String Sekmede çizecek olan.

font
Font

Font için geçerli olacaktırtabItemText.

flags
TextFormatFlags

Değerlerin bit düzeyinde birleşimi TextFormatFlags .

image
Image

Image Sekmede çizecek olan.

imageRectangle
Rectangle

öğesinin Rectangle sınırlarını imagebelirten değeri.

focused
Boolean

true odak dikdörtgeni çizmek için; aksi takdirde , false.

state
TabItemState

Sekmenin TabItemState görsel durumunu belirten değerlerden biri.

Özel durumlar

İşletim sistemi görsel stilleri desteklemez.

-veya-

Görsel stiller, işletim sistemindeki kullanıcı tarafından devre dışı bırakılır.

-veya-

Görsel stiller uygulama pencerelerinin istemci alanına uygulanmaz.

Açıklamalar

Bu yöntemi çağırmadan önce özelliğinin IsSupported döndürdüğünü truedoğrulamanız gerekir.

Şunlara uygulanır