Class
DataTemplate

Definition

Namespace:Telerik.WinForms.Documents.UI.Mentions

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

cs-api-definition
public class DataTemplate

Inheritance: objectDataTemplate

Constructors

DataTemplate(Type, Type)

Creates a new DataTemplate instance. This object maps a visual type to a data type.

Declaration

cs-api-definition
public DataTemplate(Type visualType, Type dataType)

Parameters

visualType

Type

The type of the visual item.

dataType

Type

The data type for which the visual item is intended.

Properties

DataType

Gets or sets the type for which this DataTemplate is intended.

Declaration

cs-api-definition
public Type DataType { get; }

Property Value

Type

VisualType

Gets or sets the type of the visual item. It is necessary that the custom element defines a public parameterless contstructor.

Declaration

cs-api-definition
public Type VisualType { get; }

Property Value

Type