Bookmark.ListFormat-Eigenschaft (2007 System)
Aktualisiert: November 2007
Ruft ein ListFormat-Objekt ab, das alle Listenformatierungseigenschaften eines Bookmark-Steuerelements darstellt.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)
Syntax
<BrowsableAttribute(False)> _
Public ReadOnly Property ListFormat As ListFormat
Dim instance As Bookmark
Dim value As ListFormat
value = instance.ListFormat
[BrowsableAttribute(false)]
public ListFormat ListFormat { get; }
Eigenschaftenwert
Typ: Microsoft.Office.Interop.Word.ListFormat
Ein ListFormat-Objekt, das alle Listenformatierungseigenschaften eines Bookmark-Steuerelements darstellt.
Beispiele
Im folgenden Codebeispiel wird dem ersten Absatz ein Bookmark-Steuerelement hinzugefügt und das Standardaufzählungsformat auf das Lesezeichen angewendet.
Dieses Beispiel bezieht sich auf eine Anpassung auf Dokumentebene.
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);
}
Berechtigungen
- Volle Vertrauenswürdigkeit für den unmittelbaren Aufrufer. Dieser Member kann von nur teilweise vertrauenswürdigem Code nicht verwendet werden. Weitere Informationen finden Sie unter Verwenden von Bibliotheken aus teilweise vertrauenswürdigem Code.