Freigeben über


IFormattedLine.GetOrCreateVisual Method

Gets the Visual that can be used to add this formatted text line to a VisualCollection.

Namespace:  Microsoft.VisualStudio.Text.Formatting
Assembly:  Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)

Syntax

'Declaration
Function GetOrCreateVisual As Visual
Visual GetOrCreateVisual()
Visual^ GetOrCreateVisual()
abstract GetOrCreateVisual : unit -> Visual 
function GetOrCreateVisual() : Visual

Return Value

Type: System.Windows.Media.Visual
The Visual that can be used to add this formatted text line to a VisualCollection.

Exceptions

Exception Condition
ObjectDisposedException

This IWpfTextViewLine has been disposed.

.NET Framework Security

See Also

Reference

IFormattedLine Interface

Microsoft.VisualStudio.Text.Formatting Namespace