New to Telerik UI for WinFormsStart a free 30-day trial

Definition

Namespace:Telerik.WinForms.Documents.UI.Mentions

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class DataTemplate

Inheritance: objectDataTemplate

Constructors

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

C#
public DataTemplate(Type visualType, Type dataType)
Parameters:visualTypeType

The type of the visual item.

dataTypeType

The data type for which the visual item is intended.

Properties

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

C#
public Type DataType { get; }

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

C#
public Type VisualType { get; }