Редагувати

Поділитися через


TemplateEditingService.CreateFrame Method

Definition

Creates a new template editing frame.

Overloads

CreateFrame(TemplatedControlDesigner, String, String[])

This API supports the product infrastructure and is not intended to be used directly from your code.

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

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

This API supports the product infrastructure and is not intended to be used directly from your code.

Creates a new template editing frame for the specified TemplatedControlDesigner object, 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.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 virtual 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
override this.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 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.

Implements

Remarks

Note

The TemplateEditingService class is obsolete. Expose templates through the TemplateGroups property of a control designer. The design host creates a TemplatedEditableDesignerRegion object for each TemplateDefinition in each TemplateGroup that is defined for a control designer.

Applies to

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

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

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 virtual 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
override this.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 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.

Implements

Remarks

Note

The TemplateEditingService class is obsolete. Expose templates through the TemplateGroups property of a control designer. The design host creates a TemplatedEditableDesignerRegion object for each TemplateGroup that is defined for a control designer.

Applies to