public static EditingTemplate CreateTemplate( Layer layer, string templateName, string description, Inspector inspector, string defaultTool, string[] tags, string[] toolFilter )
Public Overloads Shared Function CreateTemplate( _ ByVal layer As Layer, _ ByVal templateName As String, _ Optional ByVal description As String, _ Optional ByVal inspector As Inspector, _ Optional ByVal defaultTool As String, _ Optional ByVal tags() As String, _ Optional ByVal toolFilter() As String _ ) As EditingTemplate
Parameters
- layer
- the layer the new template is to be added to.
- templateName
- the template name.
- description
- Optional description of the template.
- inspector
- An ArcGIS.Desktop.Editing.Attributes.Inspector object containing default template values.
- defaultTool
- Optional, If not provided will use the default tool for the layer type. The defaultTool can be specified using daml-id.
- tags
- Optional. A set of tags.
- toolFilter
- Optional list of tools to not allow for this template. Tool filters can be specified using daml-id.
Return Value
the newly created template. Null if it cannot be created.