New to Telerik UI for WinForms? Start a free 30-day trial

Provides lookup and enumeration for the document's built-in styles.

Definition

Namespace:Telerik.WinForms.Documents.Model.Styles

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public static class BuiltInStyles

Inheritance: objectBuiltInStyles

Methods

Gets all primary styles.

C#
public static IEnumerable<StyleDefinition> GetAllPrimaryStyles()
Returns:

IEnumerable<StyleDefinition>

Gets all styles.

C#
public static IEnumerable<StyleDefinition> GetAllStyles()
Returns:

IEnumerable<StyleDefinition>

Gets all styles.

C#
public static IEnumerable<StyleDefinition> GetAllStyles(StyleType type)
Parameters:typeStyleType

The type.

Returns:

IEnumerable<StyleDefinition>

Gets the style by name.

C#
public static StyleDefinition GetStyle(string styleName)
Parameters:styleNamestring

Name of the style.

Returns:

StyleDefinition

Determines whether the specific style name is built in style.

C#
public static bool IsBuiltInStyle(string styleName)
Parameters:styleNamestring

Name of the style.

Returns:

bool