Class
SdtContentGenerator<T>

Represents a base class for generating Content Controls' content.

Definition

Namespace:Telerik.Windows.Documents.Model.StructuredDocumentTags

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Type Parameters:

T

Syntax:

cs-api-definition
public abstract class SdtContentGenerator<T> where T : SdtProperties

Inheritance: objectSdtContentGenerator<T>

Derived Classes: SdtCheckBoxContentGeneratorSdtComboBoxContentGeneratorSdtDateContentGeneratorSdtDropDownListContentGeneratorSdtPictureContentGeneratorSdtRepeatingSectionContentGeneratorSdtRepeatingSectionItemContentGeneratorSdtRichTextContentGeneratorSdtTextContentGenerator

Constructors

SdtContentGenerator(T)

Declaration

cs-api-definition
public SdtContentGenerator(T properties)

Parameters

properties

T

Properties

PlaceholderStyleName

Gets the name of the placeholder style

Declaration

cs-api-definition
public virtual string PlaceholderStyleName { get; }

Property Value

string

Properties

Gets the associated properties.

Declaration

cs-api-definition
public T Properties { get; }

Property Value

T

Methods

GetContentFragment(RadDocument)

Generates a document fragment in accordance to the state of the sdt properties.

Declaration

cs-api-definition
public virtual DocumentFragment GetContentFragment(RadDocument document)

Parameters

document

RadDocument

Returns

DocumentFragment

GetContentFragmentOverride()

Generates the actual content fragment (non-placeholder).

Declaration

cs-api-definition
public abstract DocumentFragment GetContentFragmentOverride()

Returns

DocumentFragment

GetPlaceholderFragment()

Generates a placeholder content fragment.

Declaration

cs-api-definition
public virtual DocumentFragment GetPlaceholderFragment()

Returns

DocumentFragment

GetPlaceholderStyle(RadDocument)

Retrieves the style associated with placeholder content.

Declaration

cs-api-definition
public virtual StyleDefinition GetPlaceholderStyle(RadDocument document)

Parameters

document

RadDocument

Returns

StyleDefinition