Dela via


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

See Also

Reference

AddResult Class

AddResult Members

Microsoft.Windows.Design.SourceUpdate Namespace

Other Resources

WPF Designer Extensibility