NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ButtonBase.GetFocusRect

Calculates the rectangle that is used to draw the focus rectangle.

[Visual Basic]
Protected Function GetFocusRect( _
   ByVal g As Graphics, _
   ByVal r As Rectangle _
) As Rectangle
[C#]
protected Rectangle GetFocusRect(
   Graphics g,
   Rectangle r
);
[C++]
protected: Rectangle GetFocusRect(
   Graphics* g,
   Rectangle r
);
[JScript]
protected function GetFocusRect(
   g : Graphics,
   r : Rectangle
) : Rectangle;

Parameters

g
The Graphics surface to draw on.
r
The Rectangle bounds to drawn within.

Return Value

A Rectangle with the same bounds as the button control.

See Also

ButtonBase Class | ButtonBase Members | System.WinForms Namespace | DrawFocus