TemplateEditingService Class
This API supports the product infrastructure and is not intended to be used directly from your code.
Provides services for editing control templates at design time. This class cannot be inherited.
Assembly: System.Design (in System.Design.dll)
[ObsoleteAttribute("Use of this type is not recommended because template editing is handled in ControlDesigner. To support template editing expose template data in the TemplateGroups property and call SetViewFlags(ViewFlags.TemplateEditing, true). http://go.microsoft.com/fwlink/?linkid=14202")] [SecurityPermissionAttribute(SecurityAction::Demand, Flags = SecurityPermissionFlag::UnmanagedCode)] public ref class TemplateEditingService sealed : ITemplateEditingService, IDisposable
| Name | Description | |
|---|---|---|
![]() | TemplateEditingService(IDesignerHost^) | This API supports the product infrastructure and is not intended to be used directly from your code. Initializes a new instance of the TemplateEditingService class with the specified designer host. |
| Name | Description | |
|---|---|---|
![]() | SupportsNestedTemplateEditing | This API supports the product infrastructure and is not intended to be used directly from your code. Gets a value that indicates whether the service supports nested template editing. |
| Name | Description | |
|---|---|---|
![]() | CreateFrame(TemplatedControlDesigner^, String^, array<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^, array<String^>^, Style^, array<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. |
![]() | Dispose() | This API supports the product infrastructure and is not intended to be used directly from your code. Releases all resources that are used by the TemplateEditingService object. |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | This API supports the product infrastructure and is not intended to be used directly from your code. Finalizes the service.(Overrides Object::Finalize().) |
![]() | GetContainingTemplateName(Control^) | This API supports the product infrastructure and is not intended to be used directly from your code. Gets the name of the parent template. |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
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. |
Available since 1.1
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



