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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.