Italic Constructor (Inline)

Italic Constructor (Inline)

Initializes a new instance of the Italic class with the specified Inline object as its initial content.

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

public Italic(
	Inline childInline
You cannot use constructors in XAML.


Type: System.Windows.Documents.Inline

The initial content of the new Italic.

The following example demonstrates usage of this constructor.

// A child Inline element for the new Italic element.
Run runx = new Run("Text to make italic.");

// After this line executes, the new element "italx" 
// contains the specified Inline element, "runx".
Italic italx = new Italic(runx);

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0

Community Additions

© 2016 Microsoft