Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

StrategyRoutine Method, ImagePartClass 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: ImagePartClass
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 ImagePartClass Class | Classes | SftTree/NET 2.0