이 문서는 기계로 번역한 것입니다. 원본 텍스트를 보려면 포인터를 문서의 문장 위로 올리십시오. 추가 정보
번역
원본
이 항목은 아직 평가되지 않았습니다.- 이 항목 평가

FontFamily.GetCellDescent 메서드

지정된 스타일의 FontFamily에 대한 셀 하강을 디자인 단위로 반환합니다.

네임스페이스:  System.Drawing
어셈블리:  System.Drawing(System.Drawing.dll)
public int GetCellDescent(
	FontStyle style
)

매개 변수

style
형식: System.Drawing.FontStyle
글꼴의 스타일 정보를 포함하는 FontStyle입니다.

반환 값

형식: System.Int32
지정된 FontStyle을 사용하는 이 FontFamily의 셀 하강 메트릭입니다.

다음 코드 예제는 Windows Forms에서 사용해야 하며, 여기에는 Paint 이벤트 처리기의 매개 변수인 PaintEventArgse가 필요합니다. 이 코드는 다음 작업을 수행합니다.

  • FontFamily 를 만듭니다.

  • 해당 글꼴 패밀리의 셀 하강을 가져옵니다.

  • 셀 하강 값을 텍스트로 화면에 그립니다.


public void GetCellDescent_Example(PaintEventArgs e)
{
    // Create a FontFamily object.
    FontFamily descentFontFamily = new FontFamily("arial");

    // Get the cell descent of the font family in design units.
    int cellDescent = descentFontFamily.GetCellDescent(FontStyle.Regular);

    // Draw the result as a string to the screen.
    e.Graphics.DrawString(
        "descentFontFamily.GetCellDescent() returns " + cellDescent.ToString() + ".",
        new Font(descentFontFamily, 16),
        Brushes.Black,
        new PointF(0, 0));
}


.NET Framework

4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0에서 지원

.NET Framework Client Profile

4, 3.5 SP1에서 지원

Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008(서버 코어 역할은 지원되지 않음), Windows Server 2008 R2(서버 코어 역할은 SP1 이상에서 지원, Itanium은 지원되지 않음)

.NET Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.
이 정보가 도움이 되었습니까?
(1500자 남음)

커뮤니티 추가 항목

추가
© 2013 Microsoft. All rights reserved.