VisualStyleRenderer.DrawText Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Nakreslí text v zadaných mezích.
Přetížení
| Name | Description |
|---|---|
| DrawText(IDeviceContext, Rectangle, String, Boolean, TextFormatFlags) |
Nakreslí text do zadaného ohraničujícího obdélníku s možností zobrazení zakázaného textu a použití jiného formátování textu. |
| DrawText(IDeviceContext, Rectangle, String) |
Nakreslí text v zadaných mezích pomocí výchozího formátování. |
| DrawText(IDeviceContext, Rectangle, String, Boolean) |
Nakreslí text v zadaných mezích s možností zobrazení zakázaného textu. |
DrawText(IDeviceContext, Rectangle, String, Boolean, TextFormatFlags)
- Zdroj:
- VisualStyleRenderer.cs
- Zdroj:
- VisualStyleRenderer.cs
- Zdroj:
- VisualStyleRenderer.cs
- Zdroj:
- VisualStyleRenderer.cs
- Zdroj:
- VisualStyleRenderer.cs
Nakreslí text do zadaného ohraničujícího obdélníku s možností zobrazení zakázaného textu a použití jiného formátování textu.
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)
Parametry
Použitý IDeviceContext k vykreslení textu.
- textToDraw
- String
Text, který chcete nakreslit.
- drawDisabled
- Boolean
truekreslení šedého textu; v opačném případě . false
- flags
- TextFormatFlags
Bitové kombinace TextFormatFlags hodnot.
Výjimky
dc je null.
Platí pro
DrawText(IDeviceContext, Rectangle, String)
- Zdroj:
- VisualStyleRenderer.cs
- Zdroj:
- VisualStyleRenderer.cs
- Zdroj:
- VisualStyleRenderer.cs
- Zdroj:
- VisualStyleRenderer.cs
- Zdroj:
- VisualStyleRenderer.cs
Nakreslí text v zadaných mezích pomocí výchozího formátování.
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)
Parametry
Použitý IDeviceContext k vykreslení textu.
- textToDraw
- String
Text, který chcete nakreslit.
Výjimky
dc je null.
Platí pro
DrawText(IDeviceContext, Rectangle, String, Boolean)
- Zdroj:
- VisualStyleRenderer.cs
- Zdroj:
- VisualStyleRenderer.cs
- Zdroj:
- VisualStyleRenderer.cs
- Zdroj:
- VisualStyleRenderer.cs
- Zdroj:
- VisualStyleRenderer.cs
Nakreslí text v zadaných mezích s možností zobrazení zakázaného textu.
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)
Parametry
Použitý IDeviceContext k vykreslení textu.
- textToDraw
- String
Text, který chcete nakreslit.
- drawDisabled
- Boolean
truekreslení šedého textu; v opačném případě . false
Výjimky
dc je null.