
| Visual Basic (Declaration) | |
|---|---|
Public NotInheritable Class MeasureBuilder Inherits GrapeCity.ActiveAnalysis.Schema.FieldBuilder(Of MeasuresDimBuilder) | |
| C# | |
|---|---|
public sealed class MeasureBuilder : GrapeCity.ActiveAnalysis.Schema.FieldBuilder<MeasuresDimBuilder> | |
This class represents a mutable measure object.
Most of the methods that modify an instance of this class return a reference to that same instance. Since a reference to the instance is returned, you can call a method or property on the reference. This can be convenient if you want to write a single statement that chains successive operations one after another.
| C# | Copy Code |
|---|---|
// Create measure 'Average Unit Price' MeasureBuilder measure = new MeasureBuilder("Unit Price") .SetAggregateFunction(AggregateFunction.Avg) .SetExpression<float>("=Fields!UnitPrice.Value") .SetDefaultFormat("c") // currency .SetForeColor(Color.DarkBlue) .SetBackColor(Color.Ivory) .SetFontFlags(FontFlags.Italic | FontFlags.Bold); | |
System.Object
GrapeCity.ActiveAnalysis.Schema.SchemaItemBuilder
GrapeCity.ActiveAnalysis.Schema.FieldBuilder
GrapeCity.ActiveAnalysis.Schema.FieldBuilder<T>
GrapeCity.ActiveAnalysis.Schema.MeasureBuilder
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2