Document.HTMLDivisions Property (2007 System)
Gets an HTMLDivisions object that represents an HTML division in a Web document.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)
Syntax
'Declaration
<BrowsableAttribute(False)> _
Public ReadOnly Property HTMLDivisions As HTMLDivisions
'Usage
Dim instance As Document
Dim value As HTMLDivisions
value = instance.HTMLDivisions
[BrowsableAttribute(false)]
public HTMLDivisions HTMLDivisions { get; }
[BrowsableAttribute(false)]
public:
property HTMLDivisions^ HTMLDivisions {
HTMLDivisions^ get ();
}
public function get HTMLDivisions () : HTMLDivisions
Property Value
Type: HTMLDivisions
An HTMLDivisions object that represents an HTML division in a Web document.
Examples
The following code example adds an HTMLDivisions to the document and then displays a message that shows the total number of HTMLDivisions in the document.
This example is for a document-level customization.
Private Sub DocumentHTMLDivisions()
Dim divisionRange As Object = Me.Paragraphs(1).Range
Me.HTMLDivisions.Add(divisionRange)
MessageBox.Show("Total HTML Divisions: " & Me.HTMLDivisions.Count.ToString())
End Sub
private void DocumentHTMLDivisions()
{
object divisionRange = this.Paragraphs[1].Range;
this.HTMLDivisions.Add(ref divisionRange);
MessageBox.Show ("Total HTML Divisions: " +
this.HTMLDivisions.Count.ToString());
}
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.