All docs
V20.1
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

IRangeControlClient.CalculateSelectionBounds(RangeControlPaintEventArgs, Rectangle) Method

When implemented by a class, this method allows you to provide custom selection bounds.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Data.v20.1.dll

Declaration

Rectangle CalculateSelectionBounds(
    RangeControlPaintEventArgs e,
    Rectangle rect
)
Function CalculateSelectionBounds(
    e As RangeControlPaintEventArgs,
    rect As Rectangle
) As Rectangle

Parameters

Name Type Description
e DevExpress.XtraEditors.RangeControlPaintEventArgs

Provides data used to paint the selection.

rect Rectangle

Specifies the selected region's bounds.

Returns

Type Description
Rectangle

Returns custom bounds of the selected region.

Remarks

To following code shows how to implement the CalculateSelectionBounds and DrawSelection methods to apply the default painting of the selected region.

Rectangle IRangeControlClient.CalculateSelectionBounds(RangeControlPaintEventArgs e, Rectangle rect) {
    return rect;
}
void IRangeControlClient.DrawSelection(RangeControlPaintEventArgs e) {
}
See Also