VisualStyleRenderer.DrawText 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 범위에서 텍스트를 그립니다.
오버로드
| Name | Description |
|---|---|
| DrawText(IDeviceContext, Rectangle, String, Boolean, TextFormatFlags) |
비활성화된 텍스트를 표시하고 다른 텍스트 서식을 적용하는 옵션을 사용하여 지정된 경계 사각형에 텍스트를 그립니다. |
| DrawText(IDeviceContext, Rectangle, String) |
기본 서식을 사용하여 지정된 범위에서 텍스트를 그립니다. |
| DrawText(IDeviceContext, Rectangle, String, Boolean) |
비활성화된 텍스트를 표시하는 옵션을 사용하여 지정된 범위에서 텍스트를 그립니다. |
DrawText(IDeviceContext, Rectangle, String, Boolean, TextFormatFlags)
- Source:
- VisualStyleRenderer.cs
- Source:
- VisualStyleRenderer.cs
- Source:
- VisualStyleRenderer.cs
- Source:
- VisualStyleRenderer.cs
- Source:
- VisualStyleRenderer.cs
비활성화된 텍스트를 표시하고 다른 텍스트 서식을 적용하는 옵션을 사용하여 지정된 경계 사각형에 텍스트를 그립니다.
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)
매개 변수
텍스트를 그리는 IDeviceContext 데 사용되는 것입니다.
- textToDraw
- String
그릴 텍스트입니다.
- drawDisabled
- Boolean
true회색으로 표시된 텍스트를 그리려면 그렇지 않으면 . false
- flags
- TextFormatFlags
값의 비트 조합입니다 TextFormatFlags .
예외
dc은 null입니다.
적용 대상
DrawText(IDeviceContext, Rectangle, String)
- Source:
- VisualStyleRenderer.cs
- Source:
- VisualStyleRenderer.cs
- Source:
- VisualStyleRenderer.cs
- Source:
- VisualStyleRenderer.cs
- Source:
- VisualStyleRenderer.cs
기본 서식을 사용하여 지정된 범위에서 텍스트를 그립니다.
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)
매개 변수
텍스트를 그리는 IDeviceContext 데 사용되는 것입니다.
- textToDraw
- String
그릴 텍스트입니다.
예외
dc은 null입니다.
적용 대상
DrawText(IDeviceContext, Rectangle, String, Boolean)
- Source:
- VisualStyleRenderer.cs
- Source:
- VisualStyleRenderer.cs
- Source:
- VisualStyleRenderer.cs
- Source:
- VisualStyleRenderer.cs
- Source:
- VisualStyleRenderer.cs
비활성화된 텍스트를 표시하는 옵션을 사용하여 지정된 범위에서 텍스트를 그립니다.
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)
매개 변수
텍스트를 그리는 IDeviceContext 데 사용되는 것입니다.
- textToDraw
- String
그릴 텍스트입니다.
- drawDisabled
- Boolean
true회색으로 표시된 텍스트를 그리려면 그렇지 않으면 . false
예외
dc은 null입니다.