TextDecoration.PenOffset 속성

정의

해당 Location의 텍스트 장식 오프셋을 가져오거나 설정합니다.

public:
 property double PenOffset { double get(); void set(double value); };
public double PenOffset { get; set; }
member this.PenOffset : double with get, set
Public Property PenOffset As Double

속성 값

Double

해당 Location의 텍스트 장식 오프셋입니다. 기본값은 0입니다.

예제

다음 코드 예제에서는 PenOffset 속성을 설정하는 방법을 보여 줍니다.

// Move the text decoration lower using pixel value units.
myUnderline.PenOffset = 2;
myUnderline.PenOffsetUnit = TextDecorationUnit.Pixel;
myUnderline.PenThicknessUnit = TextDecorationUnit.Pixel;
' Move the text decoration lower using pixel value units.
myUnderline.PenOffset = 2
myUnderline.PenOffsetUnit = TextDecorationUnit.Pixel
myUnderline.PenThicknessUnit = TextDecorationUnit.Pixel
<!-- Move the text decoration lower using pixel value units. -->
<TextDecoration PenOffset="2" PenOffsetUnit="Pixel" PenThicknessUnit="Pixel" />

설명

음수 값을 양수 값을 텍스트 장식이 낮은 이동 하는 동안 텍스트 장식이 높은 이동 합니다. 사용 된 PenOffsetUnit 속성을 통해이 값의 단위를 해석 하는 방법을 지정 합니다.

종속성 속성 정보

식별자 필드 PenOffsetProperty
메타 데이터 속성 설정 true 없음

적용 대상

추가 정보