C# 클래스 Xwt.Drawing.TextLayout

상속: XwtObject, IDisposable
파일 보기 프로젝트 열기: TheBrainTech/xwt 1 사용 예제들

Private Properties

프로퍼티 타입 설명
GetData TextLayoutData
InitForToolkit void
Setup void
TextLayout System

공개 메소드들

메소드 설명
AddAttribute ( Xwt.Drawing.TextAttribute attribute ) : void
ClearAttributes ( ) : void
Dispose ( ) : void
GetCoordinateFromIndex ( int index ) : System.Point

Obtains the graphical coordinate of an character in the layout.

GetIndexFromCoordinates ( System.Point p ) : int

Converts from a Position within the layout to the character at this position.

GetIndexFromCoordinates ( double x, double y ) : int

Converts from a X and Y position within the layout to the character at this position.

GetSize ( ) : Size

measures the text if Width is other than -1, it measures the height according to Width Height is ignored

SetBackground ( Color color, int startIndex, int count ) : void

Sets the background color of a part of text inside the T:Xwt.Drawing.TextLayout object.

SetFontStyle ( FontStyle style, int startIndex, int count ) : void

Sets the font style of a part of text inside the T:Xwt.Drawing.TextLayout object.

SetFontWeight ( FontWeight weight, int startIndex, int count ) : void

Sets the font weight of a part of text inside the T:Xwt.Drawing.TextLayout object.

SetForeground ( Color color, int startIndex, int count ) : void

Sets the foreground color of a part of text inside the T:Xwt.Drawing.TextLayout object.

SetStrikethrough ( int startIndex, int count ) : void

Adds a strike-through to a part of text inside the T:Xwt.Drawing.TextLayout object.

SetUnderline ( int startIndex, int count ) : void

Underlines a part of text inside the T:Xwt.Drawing.TextLayout object.

TextLayout ( ) : System
TextLayout ( Canvas canvas ) : System

비공개 메소드들

메소드 설명
GetData ( ) : TextLayoutData
InitForToolkit ( Toolkit tk ) : void
Setup ( ) : void
TextLayout ( Toolkit tk ) : System

메소드 상세

AddAttribute() 공개 메소드

public AddAttribute ( Xwt.Drawing.TextAttribute attribute ) : void
attribute Xwt.Drawing.TextAttribute
리턴 void

ClearAttributes() 공개 메소드

public ClearAttributes ( ) : void
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

GetCoordinateFromIndex() 공개 메소드

Obtains the graphical coordinate of an character in the layout.
public GetCoordinateFromIndex ( int index ) : System.Point
index int The index of the character.
리턴 System.Point

GetIndexFromCoordinates() 공개 메소드

Converts from a Position within the layout to the character at this position.
public GetIndexFromCoordinates ( System.Point p ) : int
p System.Point The position.
리턴 int

GetIndexFromCoordinates() 공개 메소드

Converts from a X and Y position within the layout to the character at this position.
public GetIndexFromCoordinates ( double x, double y ) : int
x double The x coordinate.
y double The y coordinate.
리턴 int

GetSize() 공개 메소드

measures the text if Width is other than -1, it measures the height according to Width Height is ignored
public GetSize ( ) : Size
리턴 Size

SetBackground() 공개 메소드

Sets the background color of a part of text inside the T:Xwt.Drawing.TextLayout object.
public SetBackground ( Color color, int startIndex, int count ) : void
color Color The color of the text background.
startIndex int Start index of the first character to apply the background color to.
count int The number of characters to apply the background color to.
리턴 void

SetFontStyle() 공개 메소드

Sets the font style of a part of text inside the T:Xwt.Drawing.TextLayout object.
public SetFontStyle ( FontStyle style, int startIndex, int count ) : void
style FontStyle The font style of the text.
startIndex int Start index of the first character to apply the font style to.
count int The number of characters to apply the font style to.
리턴 void

SetFontWeight() 공개 메소드

Sets the font weight of a part of text inside the T:Xwt.Drawing.TextLayout object.
public SetFontWeight ( FontWeight weight, int startIndex, int count ) : void
weight FontWeight The font weight of the text.
startIndex int Start index of the first character to apply the font weight to.
count int The number of characters to apply the font weight to.
리턴 void

SetForeground() 공개 메소드

Sets the foreground color of a part of text inside the T:Xwt.Drawing.TextLayout object.
public SetForeground ( Color color, int startIndex, int count ) : void
color Color The color of the text.
startIndex int Start index of the first character to apply the foreground color to.
count int The number of characters to apply the foreground color to.
리턴 void

SetStrikethrough() 공개 메소드

Adds a strike-through to a part of text inside the T:Xwt.Drawing.TextLayout object.
public SetStrikethrough ( int startIndex, int count ) : void
startIndex int Start index of the first character to strike-through.
count int The number of characters to strike-through.
리턴 void

SetUnderline() 공개 메소드

Underlines a part of text inside the T:Xwt.Drawing.TextLayout object.
public SetUnderline ( int startIndex, int count ) : void
startIndex int Start index of the first character to underline.
count int The number of characters to underline.
리턴 void

TextLayout() 공개 메소드

public TextLayout ( ) : System
리턴 System

TextLayout() 공개 메소드

public TextLayout ( Canvas canvas ) : System
canvas Canvas
리턴 System