Bookmark.ListFormat Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
ListFormatBir denetimin tüm liste biçimlendirme özelliklerini temsil eden bir nesne alır Bookmark .
public Microsoft.Office.Interop.Word.ListFormat ListFormat { get; }
Özellik Değeri
ListFormatBir denetimin tüm liste biçimlendirme özelliklerini temsil eden nesne Bookmark .
Örnekler
Aşağıdaki kod örneği, Bookmark ilk paragrafa bir denetim ekler ve varsayılan madde işaretli liste biçimini yer işaretine uygular.
Bu örnek, belge düzeyinde özelleştirme içindir
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);
}
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