Italic Constructor (TextPointer^, TextPointer^)

 

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)

public:
Italic(
	TextPointer^ start,
	TextPointer^ end
)

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: