Skip to main content

NavigatorButtonsBase.CheckSize(ref Size) Method

Specifies the control’s size.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public void CheckSize(
    ref Size size
)

Parameters

Name Type Description
size Size

The System.Drawing.Size object representing the control’s size.

Remarks

The CheckSize method calculates the size of all elements displayed in the control. If the control’s size extends the total size of its elements, this method enlarges the sizes of the latter so that they fit the control in the best way possible. Otherwise, if the control’s size is less than total element size, the method examines whether the control’s size extends its minimum. If it does, the control element’s size is automatically decreased. Otherwise, the control’s Size property is set to the NavigatorBase.MinSize property value.

This method is used by the data navigator internally each time its size changes. Generally, you will have no need to use it in your code.

See Also