Maps conditional table regions to the styles that format them.
Definition
Namespace:Telerik.WinForms.Documents.Model.Styles
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class ConditionalTableStylesCollection : INotifyCollectionChanged, IEnumerable
Inheritance: objectConditionalTableStylesCollection
Implements:
Constructors
Creates a collection owned by the specified table style.
public ConditionalTableStylesCollection(StyleDefinition style)
The style definition that owns the conditional styles.
Properties
Keys
ICollection<ConditionalTableStyleTypes>
Gets the table regions that currently have conditional styles.
public ICollection<ConditionalTableStyleTypes> Keys { get; }
Gets the style assigned to the specified region, or null if none is assigned.
public StyleDefinition this[ConditionalTableStyleTypes styleType] { get; }
The region whose style to retrieve.
Methods
Adds or replaces the style assigned to a region. Adding the first row- or column-banding style sets the corresponding band size to 1 when it is currently 0.
public void Add(ConditionalTableStyleTypes styleType, StyleDefinition style)
The region to format.
styleStyleDefinitionThe style that supplies the formatting.
Removes all conditional styles from the collection.
public void Clear()
Gets whether the collection contains the specified region and style pair.
public bool Contains(KeyValuePair<ConditionalTableStyleTypes, StyleDefinition> keyValuePair)
The region and style pair to check.
Returns:true if both the region and its associated style match; otherwise, false.
Gets whether a style is assigned to the specified region.
public bool ContainsKey(ConditionalTableStyleTypes styleType)
The region to check.
Returns:Gets the style assigned to a region, or null if no style is assigned.
public StyleDefinition GetValueOrNull(ConditionalTableStyleTypes styleType)
The region to look up.
Returns:The associated style, or null when the region has no style.
Raises the CollectionChanged event.
protected virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs args)
The change description to send to event subscribers.
Removes the style assigned to a region, if one is present.
public void Remove(ConditionalTableStyleTypes styleType)
The region whose conditional style should be removed.
Events
Occurs when a conditional style is added to or removed from the collection.
public event NotifyCollectionChangedEventHandler CollectionChanged
Implements: