TextCompositionManager.CompleteComposition Method (TextComposition)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Completes a specified text composition.

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

[SecurityCriticalAttribute]
[UIPermissionAttribute(SecurityAction.LinkDemand, Unrestricted = true)]
public static bool CompleteComposition(
	TextComposition composition
)

Parameters

composition
Type: System.Windows.Input.TextComposition

A TextComposition object to complete.

Return Value

Type: System.Boolean

true if the text composition was successfully completed; otherwise, false.

Exception Condition
ArgumentNullException

Raised when composition is null.

ArgumentException

Raised when there is no input manager associated with composition, or when the text composition is already marked as completed.

.NET Framework
Available since 3.0
Return to top
Show: