TextCompositionManager::CompleteComposition Method (TextComposition^)
.NET Framework (current version)
Completes a specified text composition.
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::Booleantrue 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
Available since 3.0
Show: