Class NameToInitialsImageSourceGenerator
Generates an image source representing initials from a given name.
Inheritance
Namespace: Telerik.Windows.Documents.UI.Mentions
Assembly: Telerik.Windows.Controls.RichTextBox.dll
Syntax
public class NameToInitialsImageSourceGenerator : Object
Constructors
NameToInitialsImageSourceGenerator()
Declaration
public NameToInitialsImageSourceGenerator()
Properties
Height
Gets or sets the height of the initials image generated by the NameToInitialsImageSourceGenerator.
Declaration
public double Height { get; set; }
Property Value
System.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
public double Width { get; set; }
Property Value
System.Double
A double representing the width of the image. |
Methods
Generate(String)
Generates an image source representing the initials of a given name.
Declaration
public object Generate(string value)
Parameters
System.String
value
The name from which to extract initials. |
Returns
System.Object
An image source that displays the initials from the provided name. |