Bewerken

Delen via


ITemplateEditingService.CreateFrame Method

Definition

Creates a new template editing frame.

Overloads

CreateFrame(TemplatedControlDesigner, String, String[])

Creates a new template editing frame for the specified templated control designer, using the specified name and templates.

CreateFrame(TemplatedControlDesigner, String, String[], Style, Style[])

Creates a new template editing frame for the specified TemplatedControlDesigner, using the specified name, template names, control style, and template styles.

CreateFrame(TemplatedControlDesigner, String, String[])

Creates a new template editing frame for the specified templated control designer, using the specified name and templates.

public:
 System::Web::UI::Design::ITemplateEditingFrame ^ CreateFrame(System::Web::UI::Design::TemplatedControlDesigner ^ designer, System::String ^ frameName, cli::array <System::String ^> ^ templateNames);
public System.Web.UI.Design.ITemplateEditingFrame CreateFrame (System.Web.UI.Design.TemplatedControlDesigner designer, string frameName, string[] templateNames);
abstract member CreateFrame : System.Web.UI.Design.TemplatedControlDesigner * string * string[] -> System.Web.UI.Design.ITemplateEditingFrame
Public Function CreateFrame (designer As TemplatedControlDesigner, frameName As String, templateNames As String()) As ITemplateEditingFrame

Parameters

designer
TemplatedControlDesigner

The TemplatedControlDesigner that will use the template editing frame.

frameName
String

The name of the editing frame that will be displayed on the frame. Typically this is the same as the Text property used as the menu text for the TemplateEditingVerb that is invoked to create the frame.

templateNames
String[]

An array of names for the templates that the template editing frame will contain.

Returns

The new ITemplateEditingFrame.

Remarks

Note

The ITemplateEditingService interface is obsolete. Expose templates through the TemplateGroups property of a control designer. The design host creates a TemplatedEditableDesignerRegion for each TemplateGroup defined for a control designer.

See also

Applies to

CreateFrame(TemplatedControlDesigner, String, String[], Style, Style[])

Creates a new template editing frame for the specified TemplatedControlDesigner, using the specified name, template names, control style, and template styles.

public:
 System::Web::UI::Design::ITemplateEditingFrame ^ CreateFrame(System::Web::UI::Design::TemplatedControlDesigner ^ designer, System::String ^ frameName, cli::array <System::String ^> ^ templateNames, System::Web::UI::WebControls::Style ^ controlStyle, cli::array <System::Web::UI::WebControls::Style ^> ^ templateStyles);
public System.Web.UI.Design.ITemplateEditingFrame CreateFrame (System.Web.UI.Design.TemplatedControlDesigner designer, string frameName, string[] templateNames, System.Web.UI.WebControls.Style controlStyle, System.Web.UI.WebControls.Style[] templateStyles);
abstract member CreateFrame : System.Web.UI.Design.TemplatedControlDesigner * string * string[] * System.Web.UI.WebControls.Style * System.Web.UI.WebControls.Style[] -> System.Web.UI.Design.ITemplateEditingFrame
Public Function CreateFrame (designer As TemplatedControlDesigner, frameName As String, templateNames As String(), controlStyle As Style, templateStyles As Style()) As ITemplateEditingFrame

Parameters

designer
TemplatedControlDesigner

The TemplatedControlDesigner that will use the template editing frame.

frameName
String

The name of the editing frame that will be displayed on the frame. Typically this is the same as the Text property used as the menu text for the TemplateEditingVerb that is invoked to create the frame.

templateNames
String[]

An array of names for the templates that the template editing frame will contain.

controlStyle
Style

The control Style for the editing frame.

templateStyles
Style[]

An array of type Style that represents the template styles for the editing frame.

Returns

The new ITemplateEditingFrame.

Remarks

Note

The ITemplateEditingService interface is obsolete. Expose templates through the TemplateGroups property of a control designer. The design host creates a TemplatedEditableDesignerRegion for each TemplateGroup defined for a control designer.

See also

Applies to