Class
NameToInitialsImageSourceGenerator

Generates an image source representing initials from a given name.

Definition

Namespace:Telerik.Windows.Documents.UI.Mentions

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class NameToInitialsImageSourceGenerator

Inheritance: objectNameToInitialsImageSourceGenerator

Constructors

NameToInitialsImageSourceGenerator()

Declaration

cs-api-definition
public NameToInitialsImageSourceGenerator()

Properties

Height

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

Declaration

cs-api-definition
public double Height { get; set; }

Property Value

double

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

Width

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

Declaration

cs-api-definition
public double Width { get; set; }

Property Value

double

A double representing the width of the image.

Methods

Generate(string)

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

Declaration

cs-api-definition
public object Generate(string value)

Parameters

value

string

The name from which to extract initials.

Returns

object

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