共用方式為


AutomationPeer.RaiseTextEditTextChangedEvent 方法

定義

引發事件,通知 Microsoft UI 自動化核心文字控制項已以程式設計方式變更文字。

public:
 virtual void RaiseTextEditTextChangedEvent(AutomationTextEditChangeType automationTextEditChangeType, IVectorView<Platform::String ^> ^ changedData) = RaiseTextEditTextChangedEvent;
void RaiseTextEditTextChangedEvent(AutomationTextEditChangeType const& automationTextEditChangeType, IVectorView<winrt::hstring> const& changedData);
public void RaiseTextEditTextChangedEvent(AutomationTextEditChangeType automationTextEditChangeType, IReadOnlyList<string> changedData);
function raiseTextEditTextChangedEvent(automationTextEditChangeType, changedData)
Public Sub RaiseTextEditTextChangedEvent (automationTextEditChangeType As AutomationTextEditChangeType, changedData As IReadOnlyList(Of String))

參數

automationTextEditChangeType
AutomationTextEditChangeType

對文字所做的變更類型。

changedData

IVectorView<String>

IReadOnlyList<String>

IVectorView<Platform::String>

IVectorView<winrt::hstring>

新的文字。

適用於