AddResult.GetAddedFragment Method
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Returns the location of the added text relative to the modified source document.
Namespace: Microsoft.Windows.Design.SourceUpdate
Assembly: Microsoft.Windows.Design.Markup (in Microsoft.Windows.Design.Markup.dll)
Syntax
'Declaration
Public Function GetAddedFragment As SourceFragment
'Usage
Dim instance As AddResult
Dim returnValue As SourceFragment
returnValue = instance.GetAddedFragment()
public SourceFragment GetAddedFragment()
public:
SourceFragment GetAddedFragment()
public function GetAddedFragment() : SourceFragment
Return Value
Type: Microsoft.Windows.Design.SourceUpdate.SourceFragment
The location of the added text.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | The Commit method has not been called. |
Remarks
The text is added by using the SourceModifier.Add method.
.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.
See Also
Reference
Microsoft.Windows.Design.SourceUpdate Namespace