Bookmark.ListFormat Özellik
Alır bir ListFormat tüm liste biçimlendirme özelliklerini temsil eden nesne bir Bookmark denetim.
Ad alanı: Microsoft.Office.Tools.Word
Derleme: Microsoft.Office.Tools.Word (Microsoft.Office.Tools.Word.dll içinde)
Sözdizimi
'Bildirim
ReadOnly Property ListFormat As ListFormat
ListFormat ListFormat { get; }
Özellik Değeri
Tür: Microsoft.Office.Interop.Word.ListFormat
A ListFormat tüm liste biçimlendirme özelliklerini temsil eden nesne bir Bookmark denetim.
Örnekler
Aşağıdaki kod örneği ekler bir Bookmark ilk paragrafa denetlemek ve yer işaretinin varsayılan madde işaretli liste biçimini uygular.
Bu örnek, belge düzeyinde özelleştirme içindir
Private Sub BookmarkListFormat()
Me.Paragraphs(1).Range.InsertParagraphBefore()
Dim Bookmark1 As Microsoft.Office.Tools.Word.Bookmark = _
Me.Controls.AddBookmark(Me.Paragraphs(1).Range, "Bookmark1")
Bookmark1.Text = "This is sample bookmark text." & vbLf & _
"This is the second paragraph of text."
Bookmark1.ListFormat.ApplyBulletDefault()
MessageBox.Show("Number of ListParagraphs in the bookmark: " _
& Bookmark1.ListParagraphs.Count.ToString)
End Sub
private void BookmarkListFormat()
{
this.Paragraphs[1].Range.InsertParagraphBefore();
Microsoft.Office.Tools.Word.Bookmark bookmark1 =
this.Controls.AddBookmark(this.Paragraphs[1].Range,
"bookmark1");
bookmark1.Text = "This is sample bookmark text." + "\n" +
"This is the second paragraph of text.";
bookmark1.ListFormat.ApplyBulletDefault(ref missing);
MessageBox.Show("Number of ListParagraphs in the bookmark: " +
bookmark1.ListParagraphs.Count);
}
.NET Framework Güvenliği
- Anında arayanlar için tam güven. Bu üye kısmen güvenilen kodla kullanılamaz. Daha fazla bilgi için bkz. Kısmen Güvenilen Koddan Kitaplıkları Kullanma.