DetailsViewDesigner.OnClick(DesignerRegionMouseEventArgs) 方法
定义
当单击关联控件设计时视图的区域时,会调用它。Called when a region of the design-time view for the associated control is clicked.
protected:
override void OnClick(System::Web::UI::Design::DesignerRegionMouseEventArgs ^ e);
protected override void OnClick (System.Web.UI.Design.DesignerRegionMouseEventArgs e);
override this.OnClick : System.Web.UI.Design.DesignerRegionMouseEventArgs -> unit
Protected Overrides Sub OnClick (e As DesignerRegionMouseEventArgs)
参数
一个 DesignerRegionMouseEventArgs,它定义控件的被单击区域。A DesignerRegionMouseEventArgs that defines the clicked region of the control.
注解
OnClick方法保存选定的区域索引,并更新 DetailsView 在设计图面上呈现控件的标记。The OnClick method saves the selected region index and updates the markup that renders the DetailsView control on the design surface.