Table of Contents

Class Style

Namespace: FastReport.Olap.Styling
Assembly: FastCube.Core.dll

Style class for cube items.

public class Style

Inheritance

objectStyle

Constructors

Style(CustomStyles)

Creates a new instance.

public Style(CustomStyles owner)

Parameters

owner CustomStyles

Fields

owner

Owner of the style.

protected readonly CustomStyles owner

Field Value

CustomStyles

Properties

FillColor

Gets or sets fill color.

public Color FillColor { get; set; }

Property Value

Color

Font

Gets or sets font.

public FastFont Font { get; set; }

Property Value

FastFont

GradientColor

Gets or sets gradient color.

public Color GradientColor { get; set; }

Property Value

Color

GradientType

Gets or sets gradient type.

public GradientType GradientType { get; set; }

Property Value

GradientType

Index

Gets index.

public int Index { get; }

Property Value

int

TextColor

Gets or sets text color.

public Color TextColor { get; set; }

Property Value

Color

Methods

Assign(Style)

Assign variables from source.

public virtual void Assign(Style source)

Parameters

source Style

DoChange()

Raise changed event.

protected virtual void DoChange()

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Load(XmlItem)

Load style from xml item.

public void Load(XmlItem item)

Parameters

item XmlItem

LoadColor(XmlItem, string)

Loads color from xml.

protected static Color LoadColor(XmlItem item, string propName)

Parameters

item XmlItem

propName string

Returns

Color

LoadFont(XmlItem)

Loads front form xml.

protected void LoadFont(XmlItem item)

Parameters

item XmlItem

MergeWith(Style)

Merge style with.

public virtual void MergeWith(Style style)

Parameters

style Style

SameFont(FastFont)

Checks fonts equals.

protected bool SameFont(FastFont f)

Parameters

f FastFont

Returns

bool

Save(XmlItem)

Save style to xml item.

public void Save(XmlItem item)

Parameters

item XmlItem

SaveColor(XmlItem, string, Color)

Saves color to xml.

protected static void SaveColor(XmlItem item, string propName, Color color)

Parameters

item XmlItem

propName string

color Color

SaveFont(XmlItem)

Saves font to xml.

protected void SaveFont(XmlItem item)

Parameters

item XmlItem

Changed

Event on changed.

public event EventHandler Changed

Event Type

EventHandler