Public static (Shared in Visual Basic) members of this type are
safe for multithreaded operations. Instance members are not guaranteed to be
thread-safe.
Remarks
Use this class to render rebar buttons onto a Graphics surface.
The rebar button is divided into four elements. Each can be independently drawn and measured:
The border, which is drawn differently depending on the value of the ButtonType property and the button's state, as specified by the State property. Use the GetButtonRectangle to get the bounds of the border and GetDropDownRectangle to get the bounds of the drop-down rectangle, if the button's type is RebarButtonType.MenuOrPush. You can draw the borders with the DrawBorders method.
The image on the button. Various image effects can be applied when the button's state is RebarButtonState.Hot by setting the HotLightEffect property. Get the bounding rectangle using GetImageRectangle, or draw it using DrawImage.
The text on the button. The position of text in relation to the image is specified by the TextAlign property. Get the bounding rectangle using GetTextRectangle, or draw it using DrawText.
The drop-down arrow. The arrow is always drawn centered both vertically and horizontally on the drop-down button. Draw it using DrawArrow.
Alternately, you can use the RenderButton method to render the entire button using the default implementation.