Table of Contents

Interface IControl

Namespace
Alternet.Common
Assembly
Alternet.Common.v9.dll

Represents standard control properties and methods.

public interface IControl

Properties

BackColor

When implemented by a class, gets or sets the background color for the control.

BackgroundImage

When implemented by a class, gets or sets the background image displayed in the control.

Bounds

When implemented by a class, gets or sets the size and location of the control including its non-client elements.

CanFocus

When implemented by a class, returns boolean value indicating whether the control can receive input focus.

ClientRectangle

When implemented by a class, gets the rectangle that represents the client area of the control.

ContextMenuStrip

When implemented by a class, gets or sets the ContextMenuStrip associated with this control.

Created

When implemented by a class, gets a value indicating whether the control has been created.

Dock

When implemented by a class, gets or sets which control borders are docked to its parent control and determines how a control is resized with its parent.

Enabled

When implemented by a class, gets or sets a value indicating whether the control can respond to user interaction.

Focused

When implemented by a class, gets a value indicating whether the control has input focus.

Font

When implemented by a class, gets or sets the font of the text displayed by the control.

ForeColor

When implemented by a class, gets or sets the foreground color of the control.

Handle

When implemented by a class, gets the window handle that the control is bound to.

Height

When implemented by a class, gets or sets the height of the control.

IsHandleCreated

When implemented by a class, gets a value indicating whether the control has a handle associated with it.

Left

When implemented by a class, gets or sets the distance, in pixels, between the left edge of the control and the left edge of its container's client area.

Location

When implemented by a class, gets or sets the coordinates of the upper-left corner of the control relative to the upper-left corner of its container.

Parent

When implemented by a class, gets or sets a reference to the server control's parent control in the page control hierarchy.

Top

When implemented by a class, gets or sets the distance, in pixels, between the bottom edge of the control and the top edge of its container's client area.

Visible

When implemented by a class, gets or sets a value indicating whether the control is displayed.

Width

When implemented by a class, gets or sets the width of the control.

Methods

BringToFront()

When implemented by a class, brings the control to the front of the z-order.

CreateGraphics()

When implemented by a class, creates the Graphics for the control.

FindForm()

When implemented by a class, retrieves the form that the control is on.

Focus()

When implemented by a class, sets input focus to the control.

Invalidate()

When implemented by a class, invalidates the entire client area of the control.

Invalidate(Rectangle)

When implemented by a class, invalidates a specific region of the control.

Invalidate(Region)

When implemented by a class, invalidates a specific region of the control.

Invalidate(Region, bool)

When implemented by a class, invalidates a specific region of the control.

Invoke(Delegate)

When implemented by a class, executes the specified delegate on the thread that owns the control's underlying window handle.

PointToClient(Point)

When implemented by a class, computes the location of the specified screen point into client coordinates.

PointToScreen(Point)

When implemented by a class, computes the location of the specified client point into screen coordinates.

Refresh()

When implemented by a class, causes the control to redraw the invalidated regions within its client area.

Events

Click

When implemented by a class, occurs when the control is clicked.