System::Drawing::Graphics::MeasureString 메서드

Graphics::MeasureString(String const&, System::SharedPtr<Font> const&, int, System::SharedPtr<StringFormat> const&) const method

지정된 형식과 지정된 글꼴로 그려졌을 때 지정된 문자열의 크기를 반환합니다.

SizeF System::Drawing::Graphics::MeasureString(String const &str, System::SharedPtr<Font> const &font, int width, System::SharedPtr<StringFormat> const &stringFormat=nullptr) const
매개변수형식설명
strString const&크기를 계산할 문자열
fontSystem::SharedPtr<Font> const&문자열을 그리는 데 사용되는 글꼴
widthint문자열의 최대 너비
stringFormatSystem::SharedPtr<StringFormat> const&문자열 형식을 지정합니다

ReturnValue

현재 Grapphics 객체의 PageUnit 속성으로 지정된 측정 단위로 문자열의 크기를 나타내는 SizeF 객체.

또 보기

Graphics::MeasureString(String const&, System::SharedPtr<Font> const&, PointF const&, System::SharedPtr<StringFormat> const&) const method

지정된 형식과 지정된 글꼴로 그려졌을 때 지정된 문자열의 크기를 반환합니다.

SizeF System::Drawing::Graphics::MeasureString(String const &str, System::SharedPtr<Font> const &font, PointF const &origin=PointF(0, 0), System::SharedPtr<StringFormat> const &stringFormat=nullptr) const
매개변수형식설명
strString const&크기를 계산할 문자열
fontSystem::SharedPtr<Font> const&문자열을 그리는 데 사용되는 글꼴
originPointF const&문자열의 왼쪽 위 모서리 위치를 지정합니다
stringFormatSystem::SharedPtr<StringFormat> const&문자열 형식을 지정합니다

ReturnValue

현재 Grapphics 객체의 PageUnit 속성으로 지정된 측정 단위로 문자열의 크기를 나타내는 SizeF 객체.

또 보기

Graphics::MeasureString(String const&, System::SharedPtr<Font> const&, SizeF const&, System::SharedPtr<StringFormat> const&, int&, int&) const method

구현되지 않음.

SizeF System::Drawing::Graphics::MeasureString(String const &str, System::SharedPtr<Font> const &font, SizeF const &layoutArea, System::SharedPtr<StringFormat> const &stringFormat, int &charactersFitted, int &linesFilled) const

또 보기

Graphics::MeasureString(String const&, System::SharedPtr<Font> const&, SizeF const&, System::SharedPtr<StringFormat> const&) const method

지정된 형식과 지정된 글꼴로 그려졌을 때 지정된 문자열의 크기를 반환합니다.

SizeF System::Drawing::Graphics::MeasureString(String const &str, System::SharedPtr<Font> const &font, SizeF const &layoutArea, System::SharedPtr<StringFormat> const &stringFormat=nullptr) const
매개변수형식설명
strString const&크기를 계산할 문자열
fontSystem::SharedPtr<Font> const&문자열을 그리는 데 사용되는 글꼴
layoutAreaSizeF const&문자열의 최대 레이아웃 영역
stringFormatSystem::SharedPtr<StringFormat> const&문자열 형식을 지정합니다

ReturnValue

현재 Grapphics 객체의 PageUnit 속성으로 지정된 측정 단위로 문자열의 크기를 나타내는 SizeF 객체.

또 보기