Class Run
An inline-level flow content element intended to contain a run of formatted or unformatted text.
Inherited Members
Namespace: Telerik.Windows.Documents.Flow.Model
Assembly: Telerik.Windows.Documents.Flow.dll
Syntax
public sealed class Run : InlineBase, IElementWithStyle, IElementWithProperties
Constructors
Run(RadFlowDocument)
Initializes a new instance of the Run class.
Declaration
public Run(RadFlowDocument document)
Parameters
Rad The document in which the element will be added. |
Fields
BackgroundColorPropertyDefinition
Gets the background color property definition.
Declaration
public static readonly StylePropertyDefinition<ThemableColor> BackgroundColorPropertyDefinition
Field Value
BaselineAlignmentPropertyDefinition
Gets the baseline alignment property definition.
Declaration
public static readonly StylePropertyDefinition<BaselineAlignment? > BaselineAlignmentPropertyDefinition
Field Value
Style
|
FlowDirectionPropertyDefinition
Gets the flow direction property definition.
Declaration
public static readonly StylePropertyDefinition<FlowDirection? > FlowDirectionPropertyDefinition
Field Value
Style
|
FontFamilyPropertyDefinition
Gets the font family property definition.
Declaration
public static readonly StylePropertyDefinition<ThemableFontFamily> FontFamilyPropertyDefinition
Field Value
FontSizePropertyDefinition
Gets the font size property definition.
Declaration
public static readonly StylePropertyDefinition<double? > FontSizePropertyDefinition
Field Value
Style
|
FontStylePropertyDefinition
Gets the font style property definition.
Declaration
public static readonly StylePropertyDefinition<FontStyle? > FontStylePropertyDefinition
Field Value
Style
|
FontWeightPropertyDefinition
Gets the font weight property definition.
Declaration
public static readonly StylePropertyDefinition<FontWeight? > FontWeightPropertyDefinition
Field Value
Style
|
ForegroundColorPropertyDefinition
Gets the foreground color property definition.
Declaration
public static readonly StylePropertyDefinition<ThemableColor> ForegroundColorPropertyDefinition
Field Value
HighlightColorPropertyDefinition
Gets the highlight color property definition.
Declaration
public static readonly StylePropertyDefinition<Color? > HighlightColorPropertyDefinition
Field Value
Style
|
ShadingPatternColorPropertyDefinition
Gets the shading pattern color property definition.
Declaration
public static readonly StylePropertyDefinition<ThemableColor> ShadingPatternColorPropertyDefinition
Field Value
ShadingPatternPropertyDefinition
Gets the shading pattern property definition.
Declaration
public static readonly StylePropertyDefinition<ShadingPattern? > ShadingPatternPropertyDefinition
Field Value
Style
|
StrikethroughPropertyDefinition
Gets the strikethrough property definition.
Declaration
public static readonly StylePropertyDefinition<bool? > StrikethroughPropertyDefinition
Field Value
Style
|
UnderlineColorPropertyDefinition
Gets the underline color property definition.
Declaration
public static readonly StylePropertyDefinition<ThemableColor> UnderlineColorPropertyDefinition
Field Value
UnderlinePatternPropertyDefinition
Gets the underline pattern property definition.
Declaration
public static readonly StylePropertyDefinition<UnderlinePattern? > UnderlinePatternPropertyDefinition
Field Value
Style
|
Properties
BaselineAlignment
Gets or sets the baseline alignment.
Declaration
public BaselineAlignment BaselineAlignment { get; set; }
Property Value
Baseline The default value is |
FlowDirection
Gets or sets the flow direction.
Declaration
public FlowDirection FlowDirection { get; set; }
Property Value
Flow The default value is |
FontFamily
Gets or sets the font family.
Declaration
public ThemableFontFamily FontFamily { get; set; }
Property Value
Themable The font family. |
FontSize
Gets or sets the size of the font. The value is in device independent pixels (1/96 inch).
Declaration
public double FontSize { get; set; }
Property Value
System. The size of the font. |
FontStyle
Gets or sets the font style.
Declaration
public FontStyle FontStyle { get; set; }
Property Value
System. The default value is |
FontWeight
Gets or sets the font weight.
Declaration
public FontWeight FontWeight { get; set; }
Property Value
System. The default value is |
ForegroundColor
Gets or sets the color of the foreground.
Declaration
public ThemableColor ForegroundColor { get; set; }
Property Value
Themable The default value is |
HighlightColor
Gets or sets the color of the highlight.
Declaration
public Color HighlightColor { get; set; }
Property Value
System. The default value is |
Properties
Gets the styling properties of this element.
Declaration
public CharacterProperties Properties { get; }
Property Value
Character The properties. |
Shading
Strikethrough
Gets or sets the strikethrough.
Declaration
public bool Strikethrough { get; set; }
Property Value
System. The default value is |
StyleId
Gets or sets the style id.
Declaration
public string StyleId { get; set; }
Property Value
System. The style id. |
Implements
Text
Gets or sets the text.
Declaration
public string Text { get; set; }
Property Value
System. The text. |
Underline
Gets the underline.
Declaration
public Underline Underline { get; }
Property Value
Underline
The underline. |
Methods
Clone()
Creates deep copy of this document element, associated to the current document.
Declaration
public Run Clone()
Returns
Run
The cloned element. |
Clone(RadFlowDocument)
Creates deep copy of this document element, associated to document
.
Declaration
public Run Clone(RadFlowDocument document)
Parameters
Rad The document to which the cloned element should be associated. |
Returns
Run
The cloned element. |
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
System. A string that represents the current object. |
Overrides
Explicit Interface Implementations
IElementWithProperties.Properties
Gets the properties.
Declaration
DocumentElementPropertiesBase IElementWithProperties.Properties { get; }
Returns
Document The properties. |