DocumentBase.Frames Özellik
Alır bir Frames belgedeki tüm kareleri temsil eden koleksiyonu.
Ad alanı: Microsoft.Office.Tools.Word
Derleme: Microsoft.Office.Tools.Word.v4.0.Utilities (Microsoft.Office.Tools.Word.v4.0.Utilities.dll içinde)
Sözdizimi
'Bildirim
Public ReadOnly Property Frames As Frames
public Frames Frames { get; }
Özellik Değeri
Tür: Microsoft.Office.Interop.Word.Frames
A Frames belgedeki tüm kareleri temsil eden koleksiyonu.
Örnekler
Aşağıdaki kod örneğinde, ilk paragraf metni ekler ve sonra metin çerçevesini metne ekler.Metin çerçevesi kenarlığını sonra değiştirir wdLineStyleDouble.Bu örneği kullanmak için çalıştırın ThisDocument bir belge düzeyi projesinde sınıf.
Private Sub DocumentFrames()
Dim textFrame As Word.Frame
Me.Paragraphs(1).Range.InsertParagraphAfter()
Me.Paragraphs(1).Range.Text = "Sample paragraph text."
textFrame = Me.Frames.Add(Me.Paragraphs(1).Range)
textFrame.Borders.OutsideLineStyle = Microsoft.Office.Interop. _
Word.WdLineStyle.wdLineStyleDouble
End Sub
private void DocumentFrames()
{
Word.Frame textFrame;
this.Paragraphs[1].Range.InsertParagraphAfter();
this.Paragraphs[1].Range.Text = "Sample paragraph text.";
textFrame = this.Frames.Add(this.Paragraphs[1].Range);
textFrame.Borders.OutsideLineStyle = Microsoft.Office.Interop.Word
.WdLineStyle.wdLineStyleDouble;
}
.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 kod kitaplıklarını kullanma.