CoreTextCompositionSegment 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示組合字元串中的區段。 如需說明,請參閱。
public ref class CoreTextCompositionSegment sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class CoreTextCompositionSegment final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class CoreTextCompositionSegment
Public NotInheritable Class CoreTextCompositionSegment
- 繼承
- 屬性
Windows 需求
裝置系列 |
Windows 10 (已於 10.0.10240.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)
|
備註
您可以從CoreTextEditCoNtext.CompositionCompleted事件處理常式內的CoreTextCompositionCompletedEventArgs.CompositionSegments屬性取得此類型的物件。
下圖顯示組合的不同部分:

屬性
PreconversionString |
取得字串,表示在 IME 處理之後,但在最終轉換之前的使用者輸入狀態。 |
Range |
取得 物件,表示定義這個組合區段的範圍。 |