Nyelv

VisualStyleRenderer.DrawText Metódus

Definíció

Szöveg rajzolása a megadott korlátok között.

Túlterhelések

Név Description
DrawText(IDeviceContext, Rectangle, String, Boolean, TextFormatFlags)

A megadott határolókeretben lévő szöveget úgy rajzolja meg, hogy letiltott szöveget jelenít meg, és más szövegformázást alkalmaz.

DrawText(IDeviceContext, Rectangle, String)

A megadott korlátokban lévő szöveget alapértelmezett formázással rajzolja meg.

DrawText(IDeviceContext, Rectangle, String, Boolean)

Szöveg rajzolása a megadott határok között a letiltott szöveg megjelenítésének lehetőségével.

DrawText(IDeviceContext, Rectangle, String, Boolean, TextFormatFlags)

Forrás:
VisualStyleRenderer.cs
Forrás:
VisualStyleRenderer.cs
Forrás:
VisualStyleRenderer.cs
Forrás:
VisualStyleRenderer.cs
Forrás:
VisualStyleRenderer.cs

A megadott határolókeretben lévő szöveget úgy rajzolja meg, hogy letiltott szöveget jelenít meg, és más szövegformázást alkalmaz.

public:
 void DrawText(System::Drawing::IDeviceContext ^ dc, System::Drawing::Rectangle bounds, System::String ^ textToDraw, bool drawDisabled, System::Windows::Forms::TextFormatFlags flags);
public void DrawText(System.Drawing.IDeviceContext dc, System.Drawing.Rectangle bounds, string textToDraw, bool drawDisabled, System.Windows.Forms.TextFormatFlags flags);
public void DrawText(System.Drawing.IDeviceContext dc, System.Drawing.Rectangle bounds, string? textToDraw, bool drawDisabled, System.Windows.Forms.TextFormatFlags flags);
member this.DrawText : System.Drawing.IDeviceContext * System.Drawing.Rectangle * string * bool * System.Windows.Forms.TextFormatFlags -> unit
Public Sub DrawText (dc As IDeviceContext, bounds As Rectangle, textToDraw As String, drawDisabled As Boolean, flags As TextFormatFlags)

Paraméterek

dc
IDeviceContext

A IDeviceContext szöveg rajzolásához használt.

bounds
Rectangle

A Rectangle szöveg rajzolásához.

textToDraw
String

A rajzolni kívánt szöveg.

drawDisabled
Boolean

trueszürkésített szöveg rajzolása; egyéb esetben. false

flags
TextFormatFlags

Az értékek bitenkénti kombinációja TextFormatFlags .

Kivételek

dc az null.

A következőre érvényes:

DrawText(IDeviceContext, Rectangle, String)

Forrás:
VisualStyleRenderer.cs
Forrás:
VisualStyleRenderer.cs
Forrás:
VisualStyleRenderer.cs
Forrás:
VisualStyleRenderer.cs
Forrás:
VisualStyleRenderer.cs

A megadott korlátokban lévő szöveget alapértelmezett formázással rajzolja meg.

public:
 void DrawText(System::Drawing::IDeviceContext ^ dc, System::Drawing::Rectangle bounds, System::String ^ textToDraw);
public void DrawText(System.Drawing.IDeviceContext dc, System.Drawing.Rectangle bounds, string textToDraw);
public void DrawText(System.Drawing.IDeviceContext dc, System.Drawing.Rectangle bounds, string? textToDraw);
member this.DrawText : System.Drawing.IDeviceContext * System.Drawing.Rectangle * string -> unit
Public Sub DrawText (dc As IDeviceContext, bounds As Rectangle, textToDraw As String)

Paraméterek

dc
IDeviceContext

A IDeviceContext szöveg rajzolásához használt.

bounds
Rectangle

A Rectangle szöveg rajzolásához.

textToDraw
String

A rajzolni kívánt szöveg.

Kivételek

dc az null.

A következőre érvényes:

DrawText(IDeviceContext, Rectangle, String, Boolean)

Forrás:
VisualStyleRenderer.cs
Forrás:
VisualStyleRenderer.cs
Forrás:
VisualStyleRenderer.cs
Forrás:
VisualStyleRenderer.cs
Forrás:
VisualStyleRenderer.cs

Szöveg rajzolása a megadott határok között a letiltott szöveg megjelenítésének lehetőségével.

public:
 void DrawText(System::Drawing::IDeviceContext ^ dc, System::Drawing::Rectangle bounds, System::String ^ textToDraw, bool drawDisabled);
public void DrawText(System.Drawing.IDeviceContext dc, System.Drawing.Rectangle bounds, string textToDraw, bool drawDisabled);
public void DrawText(System.Drawing.IDeviceContext dc, System.Drawing.Rectangle bounds, string? textToDraw, bool drawDisabled);
member this.DrawText : System.Drawing.IDeviceContext * System.Drawing.Rectangle * string * bool -> unit
Public Sub DrawText (dc As IDeviceContext, bounds As Rectangle, textToDraw As String, drawDisabled As Boolean)

Paraméterek

dc
IDeviceContext

A IDeviceContext szöveg rajzolásához használt.

bounds
Rectangle

A Rectangle szöveg rajzolásához.

textToDraw
String

A rajzolni kívánt szöveg.

drawDisabled
Boolean

trueszürkésített szöveg rajzolása; egyéb esetben. false

Kivételek

dc az null.

A következőre érvényes: