Italic Constructor (TextPointer, TextPointer)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the Italic class with the specified TextPointer objects that indicate the beginning and end of a content selection that the new Italic will contain.

Namespace:   System.Windows.Documents
Assembly:  PresentationFramework (in PresentationFramework.dll)

new : 
        start:TextPointer *
        end:TextPointer -> Italic

Parameters

start
Type: System.Windows.Documents.TextPointer

The beginning of a selection of content that the new Italic will contain.

end
Type: System.Windows.Documents.TextPointer

The end of a selection of content that the new Italic will contain.

Exception Condition
ArgumentNullException

start or end is null.

ArgumentException

start and end do not resolve to a range of content suitable for enclosure by an Italic element; for example, if start and end indicate positions in different paragraphs.

The following example demonstrates usage of this constructor.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: