TextAnnotation.BeginTextEditing 方法

定义

使最终用户开始编辑批注文本。Begins editing of the annotation text by an end-user.

public:
 void BeginTextEditing();
public void BeginTextEditing ();
member this.BeginTextEditing : unit -> unit
Public Sub BeginTextEditing ()

注解

调用此方法后,批注将显示允许用户编辑批注文本的编辑框。After calling this method, the annotation displays an editing box that allows the user to edit the annotation text.

调用 StopTextEditing 方法以通过编程方式取消此模式。Call the StopTextEditing method to cancel this mode programmatically. 请注意,如果属性的值 IsMultilinefalse ,或者当最终用户在编辑框外单击时,如果值为,则编辑也将结束。 trueNote that editing also ends when the end-user hits the Enter key if the value of the IsMultiline property is false, or when the end-user clicks outside the editing box if the value is true.

适用于