Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

StrategyRoutine Method, CheckBoxPartClass Class

Used to perform various actions the part supports, like rendering the part, hit-testing, determining its position and responding to mouse button clicks.

Class: CheckBoxPartClass
Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET

Syntax

protected internal new bool StrategyRoutine(
    StrategyClass strat,
    PartsRenderingClass pr,
    Rectangle rPartArea );
Protected Friend Overrides Function StrategyRoutine(
    ByVal strat As StrategyClass,
    ByVal pr As PartsRenderingClass,
    ByVal rPartArea As Rectangle
  ) As Boolean

Parameters

strat

Defines the StrategyClass object, that contains additional information about the action to perform.

pr

Defines the PartsRenderingClass object, that is used to render a part.

rPartArea

Defines the area where the part is to be rendered.

Return Value

True if the call was handled by the part, otherwise False. The return value depends on the type of call to this method (see StrategyClass.reason)

Comments

Used to perform various actions the part supports, like rendering the part, hit-testing, determining its position and responding to mouse button clicks.

This is implemented by every class derived from GenericPartClass and provides the core functionality to implement a new part.

The StrategyClass object strat contains additional information about the action to perform. The StrategyRoutine implementation should perform the action requested by the reason field.

See Also CheckBoxPartClass Class | Classes | SftTree/NET 2.0



Spring Break!

Our offices will be closed this week (March 18 through March 22).

We'll be back March 24 to address any pending sales and support issues.