C# 클래스 LitDev.LDText

파일 보기 프로젝트 열기: litdev1/LitDev

공개 메소드들

메소드 설명
Compare ( Primitive text1, Primitive text2 ) : Primitive

Lexically compare 2 text strings, the comparison is case insensitive and culture invariant.

FindAll ( Primitive text, Primitive find ) : Primitive

Get all occurances of a subtext in some text.

GetHeight ( Primitive text ) : Primitive

Get the height in pixels that text will be displayed in the GraphicsWindow with the current font. The GraphicsWindow must be open to use this method.

GetWidth ( Primitive text ) : Primitive

Get the width in pixels that text will be displayed in the GraphicsWindow with the current font. The GraphicsWindow must be open to use this method.

Replace ( Primitive text, Primitive find, Primitive replace ) : Primitive

Find and Replace all occurances of one text with another.

Split ( Primitive text, Primitive separator ) : Primitive

Split a variable into an array delimiated by a separator.

Trim ( Primitive text ) : Primitive

Return a string with all leading and trailing 'white space' removed.

메소드 상세

Compare() 공개 정적인 메소드

Lexically compare 2 text strings, the comparison is case insensitive and culture invariant.
public static Compare ( Primitive text1, Primitive text2 ) : Primitive
text1 Primitive The first string to compare.
text2 Primitive The second string to compare.
리턴 Primitive

FindAll() 공개 정적인 메소드

Get all occurances of a subtext in some text.
public static FindAll ( Primitive text, Primitive find ) : Primitive
text Primitive The text to search.
find Primitive The subtext to search for.
리턴 Primitive

GetHeight() 공개 정적인 메소드

Get the height in pixels that text will be displayed in the GraphicsWindow with the current font. The GraphicsWindow must be open to use this method.
public static GetHeight ( Primitive text ) : Primitive
text Primitive The text to get the height.
리턴 Primitive

GetWidth() 공개 정적인 메소드

Get the width in pixels that text will be displayed in the GraphicsWindow with the current font. The GraphicsWindow must be open to use this method.
public static GetWidth ( Primitive text ) : Primitive
text Primitive The text to get the width.
리턴 Primitive

Replace() 공개 정적인 메소드

Find and Replace all occurances of one text with another.
public static Replace ( Primitive text, Primitive find, Primitive replace ) : Primitive
text Primitive A text to modify.
find Primitive The text to find and replace.
replace Primitive The text to replace the found text.
리턴 Primitive

Split() 공개 정적인 메소드

Split a variable into an array delimiated by a separator.
public static Split ( Primitive text, Primitive separator ) : Primitive
text Primitive A text string to split.
separator Primitive A separator string (e.g. " "), or an array of separator strings.
리턴 Primitive

Trim() 공개 정적인 메소드

Return a string with all leading and trailing 'white space' removed.
public static Trim ( Primitive text ) : Primitive
text Primitive A string to trim.
리턴 Primitive