C# 클래스 Ohana3DS_Transfigured.GUI.DrawingUtils

파일 보기 프로젝트 열기: Quibilia/Ohana3DS-Transfigured 1 사용 예제들

공개 메소드들

메소드 설명
clampText ( Graphics g, string text, Font font, int maxWidth ) : string

Clamp the text to fit on a limited space. Should be only used with single line Strings.

measureText ( Graphics g, string text, Font font ) : SizeF

Measures the Size of a Text.

메소드 상세

clampText() 공개 정적인 메소드

Clamp the text to fit on a limited space. Should be only used with single line Strings.
public static clampText ( Graphics g, string text, Font font, int maxWidth ) : string
g System.Drawing.Graphics Graphics object used to draw the text
text string The string with the text to be clamped
font System.Drawing.Font The font that will be used to render the text
maxWidth int The maximum space the text can use
리턴 string

measureText() 공개 정적인 메소드

Measures the Size of a Text.
public static measureText ( Graphics g, string text, Font font ) : SizeF
g System.Drawing.Graphics Graphics object used to draw the text
text string The text
font System.Drawing.Font Font used to draw the text
리턴 System.Drawing.SizeF