Literal.Focus 方法

定义

在控件上设置输入焦点;Focus() 基控件方法在 Literal 控件上不受支持。Set input focus to a control; the Focus() base control method is not supported on a Literal control.

public:
 override void Focus();
public override void Focus ();
override this.Focus : unit -> unit
Public Overrides Sub Focus ()

例外

Focus() 上调用 LiteralThe Focus() was called on a Literal.

注解

Literal控件重写 Focus 基类的方法。The Literal control overrides the Focus method of the base class. Focus控件的方法 Literal 始终引发异常以指示 Focus 控件上不支持该方法 LiteralThe Focus method of a Literal control always throws an exception to indicate that the Focus method is not supported on a Literal control.

适用于