GetTextWidthA

텍스트, 글꼴, 페이지 레이아웃

설명

끝의 A는 ANSI(char) DLL 진입점을 나타내며 ActiveX/COM 표면은 Unicode 형식만 노출합니다. 동작은 GetTextWidth와 동일하고 문자열 인수는 현재 SetAnsiMode 코드 페이지를 사용해 해석됩니다

선택한 글꼴과 글꼴 크기를 기준으로 지정한 텍스트의 너비를 계산합니다

구문

Delphi

Function DLGetTextWidthA(InstanceID: Integer; Text: PAnsiChar): Double;

DLL

double DLGetTextWidthA(int InstanceID, const char * Text);

매개변수

Text너비를 확인할 텍스트

반환 값

지정한 텍스트의 너비