C# Class Scroller.ScrollerPlugin

Inheritance: IPlugin, IHighlighterService
Afficher le fichier Open project: Invenietis/ck-certified Class Usage Examples

Méthodes publiques

Свойство Type Description
PluginId INamedVersionedUniqueId

Private Properties

Свойство Type Description
BrowseTree bool
OnConfigChanged void
OnInputTriggered void

Méthodes publiques

Méthode Description
HighlightImmediately ( IHighlightableElement element ) : void

This function forces the highlight of the given element.

This function is useful only when there is no alternative to.

Pause ( bool forceEndHighlight = false ) : void
RegisterInRegisteredElementAt ( string targetModuleName, string extensibleElementName, ChildPosition position, IHighlightableElement element ) : bool

Enables registering a tree node (and its children) in an already registered module. The module has to have an IExtensibleHighlightableElement whose name matches the extensibleElementName set as parameter.

RegisterTree ( string targetModuleName, string targetDisplayName, IHighlightableElement element, bool HighlightDirectly = false ) : void
Resume ( ) : void
Setup ( CK.Plugin.IPluginSetupInfo info ) : bool
Start ( ) : void
Stop ( ) : void
Teardown ( ) : void
UnregisterInRegisteredElement ( string targetModuleName, string extensibleElementName, ChildPosition position, IHighlightableElement element ) : bool

Enables unregistering a tree node (and its children) that had been registered inside an already registered module (see RegisterInRegisteredElementAt )

UnregisterTree ( string targetModuleName, IHighlightableElement element ) : void

Private Methods

Méthode Description
BrowseTree ( IHighlightableElement element, bool>.Func doing ) : bool

This method calls the function with with "element" as parameter and then calls it on each of its hightlightable children. At any point, if the function returns false, the browsing stops.

OnConfigChanged ( object sender, CK.Plugin.Config.ConfigChangedEventArgs e ) : void
OnInputTriggered ( ITrigger t ) : void

Method Details

HighlightImmediately() public méthode

This function forces the highlight of the given element.
This function is useful only when there is no alternative to.
public HighlightImmediately ( IHighlightableElement element ) : void
element IHighlightableElement The element highlight.
Résultat void

Pause() public méthode

public Pause ( bool forceEndHighlight = false ) : void
forceEndHighlight bool
Résultat void

RegisterInRegisteredElementAt() public méthode

Enables registering a tree node (and its children) in an already registered module. The module has to have an IExtensibleHighlightableElement whose name matches the extensibleElementName set as parameter.
public RegisterInRegisteredElementAt ( string targetModuleName, string extensibleElementName, ChildPosition position, IHighlightableElement element ) : bool
targetModuleName string The name of the target module
extensibleElementName string The name of the target node
position ChildPosition
element IHighlightableElement The element to register
Résultat bool

RegisterTree() public méthode

public RegisterTree ( string targetModuleName, string targetDisplayName, IHighlightableElement element, bool HighlightDirectly = false ) : void
targetModuleName string
targetDisplayName string
element IHighlightableElement
HighlightDirectly bool
Résultat void

Resume() public méthode

public Resume ( ) : void
Résultat void

Setup() public méthode

public Setup ( CK.Plugin.IPluginSetupInfo info ) : bool
info CK.Plugin.IPluginSetupInfo
Résultat bool

Start() public méthode

public Start ( ) : void
Résultat void

Stop() public méthode

public Stop ( ) : void
Résultat void

Teardown() public méthode

public Teardown ( ) : void
Résultat void

UnregisterInRegisteredElement() public méthode

Enables unregistering a tree node (and its children) that had been registered inside an already registered module (see RegisterInRegisteredElementAt )
public UnregisterInRegisteredElement ( string targetModuleName, string extensibleElementName, ChildPosition position, IHighlightableElement element ) : bool
targetModuleName string The name of the target module
extensibleElementName string The name of the target node
position ChildPosition
element IHighlightableElement The element to unregister
Résultat bool

UnregisterTree() public méthode

public UnregisterTree ( string targetModuleName, IHighlightableElement element ) : void
targetModuleName string
element IHighlightableElement
Résultat void

Property Details

PluginId public_oe static_oe property

public static INamedVersionedUniqueId PluginId
Résultat INamedVersionedUniqueId