DataGridTextBoxColumn.PaintText 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 위치에 지정된 텍스트와 주변 사각형을 그립니다.
오버로드
| Name | Description |
|---|---|
| PaintText(Graphics, Rectangle, String, Boolean) |
지정된 맞춤을 사용하여 지정된 위치에 텍스트와 사각형을 그립니다. |
| PaintText(Graphics, Rectangle, String, Brush, Brush, Boolean) |
지정된 위치에 지정된 색과 맞춤을 사용하여 텍스트와 사각형을 그립니다. |
PaintText(Graphics, Rectangle, String, Boolean)
- Source:
- DataGridTextBoxColumn.cs
- Source:
- DataGridTextBoxColumn.cs
지정된 맞춤을 사용하여 지정된 위치에 텍스트와 사각형을 그립니다.
protected:
void PaintText(System::Drawing::Graphics ^ g, System::Drawing::Rectangle bounds, System::String ^ text, bool alignToRight);
protected void PaintText(System.Drawing.Graphics g, System.Drawing.Rectangle bounds, string text, bool alignToRight);
member this.PaintText : System.Drawing.Graphics * System.Drawing.Rectangle * string * bool -> unit
Protected Sub PaintText (g As Graphics, bounds As Rectangle, text As String, alignToRight As Boolean)
매개 변수
- text
- String
화면에 그릴 문자열입니다.
- alignToRight
- Boolean
텍스트가 오른쪽 맞춤인지 여부를 나타내는 값입니다.
설명
이 메서드는 PaintText 개체 집합을 DataFormats.Format 속성과 함께 Format 사용하여 화면에 그리기 전에 값의 서식을 지정합니다.
메서드가 Paint 메서드를 호출합니다 PaintText .
추가 정보
적용 대상
PaintText(Graphics, Rectangle, String, Brush, Brush, Boolean)
- Source:
- DataGridTextBoxColumn.cs
- Source:
- DataGridTextBoxColumn.cs
지정된 위치에 지정된 색과 맞춤을 사용하여 텍스트와 사각형을 그립니다.
protected:
void PaintText(System::Drawing::Graphics ^ g, System::Drawing::Rectangle textBounds, System::String ^ text, System::Drawing::Brush ^ backBrush, System::Drawing::Brush ^ foreBrush, bool alignToRight);
protected void PaintText(System.Drawing.Graphics g, System.Drawing.Rectangle textBounds, string text, System.Drawing.Brush backBrush, System.Drawing.Brush foreBrush, bool alignToRight);
member this.PaintText : System.Drawing.Graphics * System.Drawing.Rectangle * string * System.Drawing.Brush * System.Drawing.Brush * bool -> unit
Protected Sub PaintText (g As Graphics, textBounds As Rectangle, text As String, backBrush As Brush, foreBrush As Brush, alignToRight As Boolean)
매개 변수
- text
- String
화면에 그릴 문자열입니다.
- alignToRight
- Boolean
텍스트가 오른쪽 맞춤인지 여부를 나타내는 값입니다.
설명
메서드는 PaintText 이 속성을 사용하여 Format 값을 화면에 그리기 전에 서식을 지정합니다.
메서드가 Paint 메서드를 호출합니다 PaintText .