Skip to main content
A newer version of this page is available. .

NavigatorButtonsBase.CheckSize(ref Size) Method

Specifies the control’s size.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

public void CheckSize(
    ref Size size
)

Parameters

Name Type Description
size Size

The 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