다음을 통해 공유


DataGridTextBoxColumn.PaintText 메서드

정의

지정된 위치에 지정된 텍스트와 주변 사각형을 그립니다.

오버로드

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)

매개 변수

g
Graphics

Graphics 문자열을 그리는 데 사용되는 개체입니다.

bounds
Rectangle

사각형의 경계 데이터를 포함하는 A Rectangle 입니다.

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)

매개 변수

g
Graphics

Graphics 문자열을 그리는 데 사용되는 개체입니다.

textBounds
Rectangle

사각형의 경계 데이터를 포함하는 A Rectangle 입니다.

text
String

화면에 그릴 문자열입니다.

backBrush
Brush

사각형의 배경색을 결정하는 A Brush 입니다.

foreBrush
Brush

사각형 전경색을 결정하는 A Brush 입니다.

alignToRight
Boolean

텍스트가 오른쪽 맞춤인지 여부를 나타내는 값입니다.

설명

메서드는 PaintText 이 속성을 사용하여 Format 값을 화면에 그리기 전에 서식을 지정합니다.

메서드가 Paint 메서드를 호출합니다 PaintText .

추가 정보

적용 대상