Export (0) Print
Expand All
Expand Minimize

OutlineSection Method (EditPoint Object)

Visual Studio .NET 2003

Creates an outlining section based on an edit point and the given text point or value.

[Visual Basic .NET]
Public Sub OutlineSection( _
   ByVal PointOrCount As Object _
[Visual Basic 6]
Sub OutlineSection( _
   ByVal PointOrCount As Variant _
HRESULT __stdcall OutlineSection(
   VARIANT PointOrCount
public void OutlineSection(
   object PointOrCount
[JScript .NET]
public function OutlineSection(
   PointOrCount : Object


Required. Either a TextPoint object or an integer representing the number of characters.


If PointOrCount is a 32-bit integer, then OutlineSection creates an outlining section in the text from an edit point to the specified number of characters following the edit point. Each implied newline character at the end of each line counts as one character.


Sub OutlineSectionExample()
   Dim objTextDoc As TextDocument
   Dim objEditPt As EditPoint, iCtr As Integer
   'Create a new text file.
   DTE.ItemOperations.NewFile("General\Text File")
   'Get a handle to the new document and create an EditPoint.
   objTextDoc = DTE.ActiveDocument.Object("TextDocument")
   objEditPt = objTextDoc.StartPoint.CreateEditPoint
   'Insert ten lines of text.
   For iCtr = 1 To 10
     objeditpt.Insert("This is a test." & Chr(13))
   Next iCtr
End Sub

See Also

Applies To: EditPoint Object

© 2014 Microsoft