IDimensionViewerBase.AdjustWidthOnlyVisible

Fore Syntax

AdjustWidthOnlyVisible: Boolean;

Fore.NET 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 auto fit width, double click the border between the columns or use the IDimensionViewerBase.AdjustWidth method.

Fore 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 adjusted automatically considering only visible elements, elements highlighting on hover is disabled.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore Example. Instead of the Fore components use Fore.NET analogs.

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    DV: IDimensionViewerBase;
Begin
    DV := MetaAttributesBreadcrumbNet1.CtrlBox.DimensionViewer;
    MetaAttributesBreadcrumbNet1.ShowColumnHeaders := True;
    DV.AdjustWidthOnlyVisible := True;
    DV.HighlightTrack := False;
    DV.ShowHeaderButton := True;
    DV.AdjustWidth(0);
End Sub;

See also:

IDimensionViewerBase