FlowDocument.ColumnRuleBrush 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 yang Brush digunakan untuk menggambar aturan antar kolom.
public:
property System::Windows::Media::Brush ^ ColumnRuleBrush { System::Windows::Media::Brush ^ get(); void set(System::Windows::Media::Brush ^ value); };
public System.Windows.Media.Brush ColumnRuleBrush { get; set; }
member this.ColumnRuleBrush : System.Windows.Media.Brush with get, set
Public Property ColumnRuleBrush As Brush
Nilai Properti
untuk Brush digunakan saat menggambar garis aturan antar kolom, atau null untuk tidak menggunakan kuas latar belakang. Defaultnya adalah null.
Contoh
Contoh berikut menunjukkan cara mengatur properti ColumnRuleBrush secara terprogram.
FlowDocument flowDoc = new FlowDocument(new Paragraph(new Run("A bit of text content...")));
// Set a column rule two pixels wide colored Dodger blue.
flowDoc.ColumnRuleWidth = 2.0;
flowDoc.ColumnRuleBrush = Brushes.DodgerBlue;
Dim flowDocColRule As New FlowDocument(New Paragraph(New Run("A bit of text content...")))
' Set a column rule two pixels wide colored Dodger blue.
flowDocColRule.ColumnRuleWidth = 2.0
flowDocColRule.ColumnRuleBrush = Brushes.DodgerBlue
Keterangan
Aturan kolom adalah garis yang digambar di antara kolom, dan digunakan untuk memisahkan kolom konten secara visual.
Untuk tabel swatch yang menunjukkan warna kuas yang telah ditentukan sebelumnya yang tersedia, lihat Brushes.
Properti ini tidak berpengaruh jika ColumnRuleWidth properti adalah 0 atau null.
Aturan kolom hanya ditampilkan ketika ada dua kolom atau lebih.
Informasi Properti Dependensi
| Item | Nilai |
|---|---|
| Bidang pengidentifikasi | ColumnRuleBrushProperty |
Properti metadata diatur ke true |
AffectsRender |