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

Generates an image source representing initials from a given name.

Definition

Namespace:Telerik.Windows.Documents.UI.Mentions

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class NameToInitialsImageSourceGenerator

Inheritance: objectNameToInitialsImageSourceGenerator

Constructors

C#
public NameToInitialsImageSourceGenerator()

Properties

Gets or sets the height of the initials image generated by the NameToInitialsImageSourceGenerator.

C#
public double Height { get; set; }
Property Value:

A double representing the height of the initials image. The value should be specified in pixels.

Gets or sets the width of the image source generated for names in mentions.

C#
public double Width { get; set; }
Property Value:

A double representing the width of the image.

Methods

Generates an image source representing the initials of a given name.

C#
public object Generate(string value)
Parameters:valuestring

The name from which to extract initials.

Returns:

object

An image source that displays the initials from the provided name.