GetTextRange Method (XElement)

Namespace:  Microsoft.Data.Tools.XmlDesignerBase.Model
Assemblies:   Microsoft.Data.Tools.XmlDesignerBase (in Microsoft.Data.Tools.XmlDesignerBase.dll)
  Microsoft.Data.Tools.Design.XmlCore (in Microsoft.Data.Tools.Design.XmlCore.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetTextRange ( _
    element As XElement _
) As ElementTextRange
'Usage
Dim element As XElement
Dim returnValue As ElementTextRange

returnValue = element.GetTextRange()
public static ElementTextRange GetTextRange(
    this XElement element
)
[ExtensionAttribute]
public:
static ElementTextRange^ GetTextRange(
    XElement^ element
)
static member GetTextRange : 
        element:XElement -> ElementTextRange 
public static function GetTextRange(
    element : XElement
) : ElementTextRange

Parameters

Return Value

Type: Microsoft.Data.Tools.XmlDesignerBase.Model..::..ElementTextRange

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type XElement. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.103) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).

See Also

Reference

Extensions Class

GetTextRange Overload

Microsoft.Data.Tools.XmlDesignerBase.Model Namespace