TextDecoration.PenOffset Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mendapatkan atau mengatur offset dekorasi teks dari 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
Nilai Properti
Offset dekorasi teks dari Location. Defaultnya adalah 0.
Contoh
Contoh kode berikut menunjukkan cara mengatur PenOffset properti.
// 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" />
Keterangan
Nilai negatif memindahkan dekorasi teks lebih tinggi, sementara nilai positif memindahkan dekorasi teks lebih rendah. PenOffsetUnit Gunakan properti untuk menentukan bagaimana unit nilai ini ditafsirkan.
Informasi Properti Dependensi
| Item | Nilai |
|---|---|
| Bidang pengidentifikasi | PenOffsetProperty |
Properti metadata diatur ke true |
Tidak |