Sets the scale value renderer type for a hierarchy level on a categorical axis.
Namespace: Spotfire.Dxp.Application.VisualsAssembly: Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 14.10.7525.5058 (14.10.7525.5058)
public void SetLevelSettings(
string expressionDisplayName,
TypeIdentifier typeId
)
public void SetLevelSettings(
string expressionDisplayName,
TypeIdentifier typeId
)
This feature will only have effect on the following axes: Bar chart x axis,
Line chart x axis, Combination Chart x axis, Scatter plot x and y axes and Heat map x
and y axes, and Cross Table horizontal and vertical axes. For the Cross Table the size
can not be set via this API. Instead use the setters for cell and header size avaiable
on the Cross Table plot itself. For the case when the axis can be both continuous and
categorical, the feature will only have effect when the axis is in categorical mode.
The way to set a renderer and interact with its settings, assuming that there is an expression
with display name "Images" on the current axis, is as follows:
axis.ScaleLabels.SetLevelSettings("Images", ValueRendererTypeIdentifiers.BitmapRenderer);
axis.ScaleLabels["Images"].Size = 40;
axis.ScaleLabels.SetLevelSettings("Images", ValueRendererTypeIdentifiers.BitmapRenderer);
axis.ScaleLabels["Images"].Size = 40;
axis.ScaleLabels.SetLevelSettings("Images", MyValueRendererTypeIdentifiers.MyValueRenderer);
axis.ScaleLabels["Images"].Size = 40;
MyValueRendererSettings mySettings =
(MyValueRendererSettings)axis.ScaleLabels["Images"].RendererSettings;
mySettings.MyBestProperty = "Good";
axis.ScaleLabels.SetLevelSettings("Images", MyValueRendererTypeIdentifiers.MyValueRenderer);
axis.ScaleLabels["Images"].Size = 40;
MyValueRendererSettings mySettings =
(MyValueRendererSettings)axis.ScaleLabels["Images"].RendererSettings;
mySettings.MyBestProperty = "Good";
and in a more complicated case where the developer needs to use a custom renderer
and also interact with its settings:
Supported in: 6.5, 6.0