IDimensionViewerBase.AdjustWidthOnlyVisible

Syntax

AdjustWidthOnlyVisible: Boolean;

Description

The AdjustWidthOnlyVisible property determines whether autofit takes into account width of the elements that are visible in the component.

Comments

Available values:

To autofit width, double-click the border between the columns or use the IDimensionViewerBase.AdjustWidth method.

Example

Executing the example requires a form with the Button1 button and the MetaAtrributesBreadCrumb component named MetaAtrributesBreadCrumb1. MetaAttributesBreadcrumb1 is connected to a time series database.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    DV: IDimensionViewerBase;
Begin
    DV := MetaAttributesBreadcrumb1.DimensionViewer;
    MetaAttributesBreadcrumb1.ShowColumnHeaders := True;
    DV.AdjustWidthOnlyVisible := True;
    DV.HighlightTrack := False;
    DV.ShowHeaderButton := True;
    DV.AdjustWidth(0);
End Sub Button1OnClick;

Clicking the button for the MetaAtrributesBreadCrumb1 component displays column headers and the button that opens column header menu, width of the first column is autofitted considering only visible elements, elements highlighting on mouseover is disabled.

See also:

IDimensionViewerBase