skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
  • Docs & Support
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class CharacterProperties

Defines a set of properties which can be applied to a Run element.

Inheritance
System.Object
DocumentElementPropertiesBase
CharacterProperties
Inherited Members
DocumentElementPropertiesBase.StyleIdPropertyDefinition
DocumentElementPropertiesBase.GetStyleProperty(IStylePropertyDefinition)
DocumentElementPropertiesBase.GetStyleProperty(String)
DocumentElementPropertiesBase.CopyPropertiesFrom(DocumentElementPropertiesBase)
DocumentElementPropertiesBase.ClearLocalValues()
DocumentElementPropertiesBase.HasLocalValues()
DocumentElementPropertiesBase.StyleProperties
DocumentElementPropertiesBase.StyleId
DocumentElementPropertiesBase.StyleIdProperty
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.Windows.Documents.Flow.Model.Styles
Assembly: Telerik.Windows.Documents.Flow.dll

Syntax

public sealed class CharacterProperties : DocumentElementPropertiesBase, IElementWithStyle, IPropertiesWithShading

Properties

BackgroundColor

Gets style property used to get or set the color of the background.

Declaration
public IStyleProperty<ThemableColor> BackgroundColor { get; }
Property Value
IStyleProperty<ThemableColor>

The color of the background.

Implements
IPropertiesWithShading.BackgroundColor

BaselineAlignment

Gets style property used to get or set the baseline alignment.

Declaration
public IStyleProperty<BaselineAlignment? > BaselineAlignment { get; }
Property Value
IStyleProperty<System.Nullable<BaselineAlignment>>

The default value is Baseline.

FlowDirection

Gets style property used to get or set the flow direction.

Declaration
public IStyleProperty<FlowDirection? > FlowDirection { get; }
Property Value
IStyleProperty<System.Nullable<FlowDirection>>

The default value is LeftToRight

FontFamily

Gets style property used to get or set the font family.

Declaration
public IStyleProperty<ThemableFontFamily> FontFamily { get; }
Property Value
IStyleProperty<ThemableFontFamily>

The font family.

FontSize

Gets style property used to get or set the size of the font. The value is in device independent pixels (1/96 inch).

Declaration
public IStyleProperty<double? > FontSize { get; }
Property Value
IStyleProperty<System.Nullable<System.Double>>

The size of the font.

FontStyle

Gets style property used to get or set the font style.

Declaration
public IStyleProperty<FontStyle? > FontStyle { get; }
Property Value
IStyleProperty<System.Nullable<System.Windows.FontStyle>>

The default value is Normal.

FontWeight

Gets style property used to get or set the font weight.

Declaration
public IStyleProperty<FontWeight? > FontWeight { get; }
Property Value
IStyleProperty<System.Nullable<System.Windows.FontWeight>>

The default value is Normal.

ForegroundColor

Gets style property used to get or set the foreground color.

Declaration
public IStyleProperty<ThemableColor> ForegroundColor { get; }
Property Value
IStyleProperty<ThemableColor>

The default value is black.

HighlightColor

Gets style property used to get or set the color of the highlight.

Declaration
public IStyleProperty<Color? > HighlightColor { get; }
Property Value
IStyleProperty<System.Nullable<System.Windows.Media.Color>>

The default value is Transparent.

ShadingPattern

Gets style property used to get or set a value indicating the pattern which shall be used to lay the pattern color over the background color for this shading.

Declaration
public IStyleProperty<ShadingPattern? > ShadingPattern { get; }
Property Value
IStyleProperty<System.Nullable<ShadingPattern>>

The default value is Clear

Implements
IPropertiesWithShading.ShadingPattern

ShadingPatternColor

Gets style property used to get or set a value indicating the color for any foreground pattern used in this shading.

Declaration
public IStyleProperty<ThemableColor> ShadingPatternColor { get; }
Property Value
IStyleProperty<ThemableColor>

The color of the pattern.

Implements
IPropertiesWithShading.ShadingPatternColor

Strikethrough

Gets style property used to get or set the strikethrough.

Declaration
public IStyleProperty<bool? > Strikethrough { get; }
Property Value
IStyleProperty<System.Nullable<System.Boolean>>

The default value is false.

UnderlineColor

Gets style property used to get or set the color for the underlining.

Declaration
public IStyleProperty<ThemableColor> UnderlineColor { get; }
Property Value
IStyleProperty<ThemableColor>

The color.

UnderlinePattern

Gets style property used to get or set a value indicating the pattern which shall be used to create the underlining applied beneath the text.

Declaration
public IStyleProperty<UnderlinePattern? > UnderlinePattern { get; }
Property Value
IStyleProperty<System.Nullable<UnderlinePattern>>

The default value is None

Methods

EnumerateStyleProperties()

Enumerates the style properties.

Declaration
protected override IEnumerable<IStyleProperty> EnumerateStyleProperties()
Returns
System.Collections.Generic.IEnumerable<IStyleProperty>

The style properties.

Overrides
DocumentElementPropertiesBase.EnumerateStyleProperties()

GetStylePropertyOverride(IStylePropertyDefinition)

Gets specific style property or null.

Declaration
protected override IStyleProperty GetStylePropertyOverride(IStylePropertyDefinition propertyDefinition)
Parameters
IStylePropertyDefinition propertyDefinition

The property definition.

Returns
IStyleProperty

Overrides
DocumentElementPropertiesBase.GetStylePropertyOverride(IStylePropertyDefinition)

Explicit Interface Implementations

IPropertiesWithShading.Document

Gets the document.

Declaration
RadFlowDocument IPropertiesWithShading.Document { get; }
Returns
RadFlowDocument

The document.

Implements
IPropertiesWithShading.Document
Getting Started
  • Getting Started
Support Resources
  • Documentation
Community
  • Forums
  • Blogs
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.