AdjustWidthOnlyVisible: Boolean;
AdjustWidthOnlyVisible: boolean;
The AdjustWidthOnlyVisible property determines whether autofit takes into account width of the elements that are visible in the component.
Available values:
True. Autofit takes into account only width of the elements that are visible in the component. Width of elements available by scrolling is not taken into account.
False. Default. Autofit takes into account width of all elements.
To autofit width, double-click the border between the columns or use the IDimensionViewerBase.AdjustWidth method.
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.
The requirements and result of the Fore.NET example execution match with those in the Fore example. Use Fore.NET analogs instead of Fore components.
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: