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>

新文本。

适用于