Conditional: IPrxCellStyle;
The Conditional property determines formatting of the cells satisfying a condition. The condition is determined by the Condition property.
The property is outdated, use FormatConditions.
The following example assumes that there is the Report object with the IPrxReport type.
Sub UserProc;
Var
Report: IPrxReport;
DIs: IPrxDataIslands;
DI: IPrxDataIsland;
DimModel: IDimensionModel;
Prop: IPrxDataIslandProperties;
PropDim: IPrxDataIslandDimension;
Level: IPrxDataIslandLevel;
Style: IPrxDataElementStyle;
Begin
DIs := Report.DataIslands;
DI := DIs.Item(0).Edit;
DimModel := DI.Slice.TopHeader.Item(0).Dimension.Dimension;
Prop := DI.Properties;
PropDim := Prop.Dimension(DimModel);
Level := PropDim.Level(DimModel.Levels.Item(0));
Style := Level.Style;
Style.Conditional.Font.Name := "Times New Roman";
DI.Save;
End Sub UserProc;
After executing the example font of the data area satisfying the specified condition is set as Times New Roman for the first level of the specified dimension located in columns.
See also: