Class StylesCollectionBase
Abstract collection of Style items
Namespace: FastReport.BG.Styling
Assembly: FastReport.BG.dll
Syntax
public abstract class StylesCollectionBase
Constructors
StylesCollectionBase()
Styles collection base constructor.
Declaration
public StylesCollectionBase()
Properties
FirstIndex
First style index
Declaration
public abstract int FirstIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Item[Int32]
Returns Style instance at Index
Declaration
public abstract Style this[int Index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | Index | Index in the collection |
Property Value
Type | Description |
---|---|
Style |
LastIndex
Last style index
Declaration
public abstract int LastIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
Assign(StylesCollectionBase)
Copies Style items from the source collection
Declaration
public void Assign(StylesCollectionBase source)
Parameters
Type | Name | Description |
---|---|---|
StylesCollectionBase | source | Collection to copy from |
DoChange()
Raises the Changed event
Declaration
protected void DoChange()
GetStyleName(Int32)
Returns Style name at Index
Declaration
public virtual string GetStyleName(int Index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | Index | Index in the collection |
Returns
Type | Description |
---|---|
System.String | Style name |
Remarks
Can be used by editors if it is needed to show a list of Style items
InternalSetStyle(Int32, Style)
Sets style to the specified index in the collection
Declaration
protected virtual void InternalSetStyle(int index, Style style)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index in collection |
Style | style | Style instance to set |
NewStyle(Int32)
Creates a new Style object for the specified index
Declaration
protected virtual Style NewStyle(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of style to create |
Returns
Type | Description |
---|---|
Style |
prepareStyles()
Called at the start of constructor. Used by descendants to initialze actual items container
Declaration
protected virtual void prepareStyles()
SetDefaultValues()
Called by the constructor when all Style items in the collection are created
Declaration
protected virtual void SetDefaultValues()
StyleChanged(Object, EventArgs)
Called when Style in the collection changes
Declaration
protected virtual void StyleChanged(object sender, EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | Style object |
System.EventArgs | e | Empty event args |
Events
Changed
Notifies when Style item(s) in the collection has changed
Declaration
public event EventHandler Changed
Event Type
Type | Description |
---|---|
System.EventHandler |