TextDecoration.PenOffset Özellik

Tanım

Metin dekorasyonunun uzaklığını konumundan Locationalır veya ayarlar.

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

Özellik Değeri

Double

Metin dekorasyonunun konumundan Locationuzaklığı. Varsayılan değer, 0'dur.

Örnekler

Aşağıdaki kod örneğinde özelliğin nasıl ayarlanacağı gösterilmektedir 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" />

Açıklamalar

Negatif değer metin dekorasyonunu daha yükseğe taşırken, pozitif değer metin dekorasyonunu daha düşük bir değere taşır. Bu değerin PenOffsetUnit birimlerinin nasıl yorumleneceğini belirtmek için özelliğini kullanın.

Bağımlılık Özelliği Bilgileri

Tanımlayıcı alanı PenOffsetProperty
Meta veri özellikleri olarak ayarlandı true Hiçbiri

Şunlara uygulanır

Ayrıca bkz.