c# - Distance between left edge of control and right edge of its container client area -
i have command of have find distance between left of command , right of client area.
the control.right property
gets distance, in pixels, between right border of command , left border of container's client area.
the control.left property same left border of command , left border of container's client area.
however, want know if there inbuilt method
gets distance, in pixels, between left border of command , right border of container's client area.
my current working code.
int distance = container.width - control.location.x
c# winforms control distance
No comments:
Post a Comment