TextCompositionManager::CompleteComposition Method (TextComposition^)

 

Completes a specified text composition.

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

public:
[SecurityCriticalAttribute]
[UIPermissionAttribute(SecurityAction::LinkDemand, Unrestricted = true)]
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: