WinForms DynamicHelp
WinForms DynamicHelp
Website:
Sales:
Telephone:
http://www.componentone.com
sales@componentone.com
1.800.858.2739 or 1.412.681.4343 (Pittsburgh, PA USA Office)
Trademarks
The ComponentOne product name is a trademark and ComponentOne is a registered trademark of GrapeCity, Inc.
All other trademarks used herein are the properties of their respective owners.
Warranty
ComponentOne warrants that the media on which the software is delivered is free from defects in material and
workmanship, assuming normal use, for a period of 90 days from the date of purchase. If a defect occurs during this
time, you may return the defective media to ComponentOne, along with a dated proof of purchase, and
ComponentOne will replace it at no charge. After 90 days, you can obtain a replacement for the defective media by
sending it and a check for $25 (to cover postage and handling) to ComponentOne.
Except for the express warranty of the original media on which the software is delivered is set forth here,
ComponentOne makes no other warranties, express or implied. Every attempt has been made to ensure that the
information contained in this manual is correct as of the time it was written. ComponentOne is not responsible for
any errors or omissions. ComponentOnes liability is limited to the amount you paid for the product. ComponentOne
is not liable for any special, consequential, or other damages for any reason.
Table of Contents
DynamicHelp for WinForms Overview ......................................................................................... 8
Help with WinForms Edition ..................................................................................................... 8
Key Features.................................................................................................................................. 8
DynamicHelp for WinForms Samples ........................................................................................... 9
Using DynamicHelp for WinForms .............................................................................................. 11
For Developers: Mapping at Design Time............................................................................... 11
Specifying the Source Help File ........................................................................................... 13
Mapping a Topic to a Control at Design Time..................................................................... 14
Preparing C1DynamicHelp for Authoring Mode ................................................................. 15
For Help Authors: Mapping in Authoring Mode ..................................................................... 16
Mapping a Topic to a Control in Authoring Mode .............................................................. 19
Removing the Topic Mapping for a Selected Control ......................................................... 20
Assign a Topic to a Parent Control ...................................................................................... 20
Advanced Features ................................................................................................................. 21
Displaying any Help Format ................................................................................................ 22
Mapping to Control Parts or Custom Controls ................................................................... 22
DynamicHelp for WinForms Tutorials......................................................................................... 23
Tutorial 1: Mapping Help Topics at Design Time .................................................................... 23
Step 1 of 6: Add controls to the Windows form ................................................................. 24
Step 2 of 6: Set up the C1DynamicHelp control ................................................................. 25
Step 3 of 6: Associate topics with controls on the form ..................................................... 25
Step 4 of 6: Associate a topic with the form ....................................................................... 26
Step 5 of 6: Show topics programmatically ........................................................................ 27
Step 6 of 6: Run the application.......................................................................................... 28
Tutorial 2: Mapping Help Topics in Authoring Mode ............................................................. 29
Step 1 of 4: Add controls to the Windows form ................................................................. 29
Step 2 of 4: Set up the C1DynamicHelp control ................................................................. 30
Step 3 of 4: Using authoring mode ..................................................................................... 33
Step 4 of 4: Run the Application ......................................................................................... 34
API Reference.............................................................................................................................. 35
C1.Win.C1DynamicHelp.4 Assembly ....................................................................................... 35
Namespaces ........................................................................................................................ 35
C1.Win.C1DynamicHelp Namespace .............................................................................. 35
Overview ..................................................................................................................... 35
Classes ......................................................................................................................... 37
C1DynamicHelp ....................................................................................................... 37
Overview ............................................................................................................. 38
Members ............................................................................................................. 39
C1DynamicHelp Constructor ............................................................................... 48
Methods .............................................................................................................. 49
GetHelpTopic Method .................................................................................... 51
SetHelpTopic Method ..................................................................................... 52
ShowDefaultTopic Method ............................................................................. 52
ShowExternalHelp Method ............................................................................. 53
ShowExternalHelp(HelpTab) Method ......................................................... 54
ShowExternalHelp(HelpTab,Object) Method ............................................. 54
ShowTopic Method ......................................................................................... 55
ShowTopic(String) Method ......................................................................... 56
ShowTopic(HelpTopic) Method .................................................................. 57
ShowTopic(Int32) Method .......................................................................... 58
ShowTopic(Object) Method ........................................................................ 59
ShowTopicForActiveControl Method ............................................................. 59
Properties............................................................................................................ 60
AuthoringMode Property................................................................................ 65
BorderStyle Property ...................................................................................... 66
Browser Property ............................................................................................ 66
ContextMenu Property ................................................................................... 67
ContextMenuStrip Property............................................................................ 68
CurrentTopic Property .................................................................................... 68
DefaultTrigger Property .................................................................................. 69
Dock Property ................................................................................................. 69
HelpSource Property ....................................................................................... 70
IsPinnedDown Property .................................................................................. 70
MainControl Property ..................................................................................... 71
MouseHoverDelay Property ........................................................................... 72
Provider Property............................................................................................ 72
Resolver Property ........................................................................................... 73
TopicMap Property ......................................................................................... 74
Events .................................................................................................................. 75
See Also
Help with WinForms Edition
Key Features
Documents\ComponentOne Samples\WinForms
The following tables provide a short description for each sample.
Description
AddingUICommands
C# Samples
Sample
Description
AddingUICommands
10
Software developers can use C1DynamicHelp at design time to map the topics to
controls.
or
Help authors can map topics to controls themselves using the C1DynamicHelp
authoring mode, without having to go through a software developer.
C1DynamicHelp gives you the ability to map a topic to any standard .NET controls and even
parts of those controls. You can also map to custom controls. See the Advanced Features topic
of this documentation for more information on mapping to control parts or custom controls.
DynamicHelp for WinForms supports several Help formats including HTML Help and NetHelp.
No matter who is going to perform the topic mapping, the software developer must specify the
Help file that is going to be used in the application before mapping can occur.
The following topics explain both ways to perform topic mapping.
Note: If you are the software developer of the application and would like the Help author
to map topics to controls, please provide them with this documentation. The For Help
Authors: Mapping in Authoring Mode topic provides all the information needed for topic
mapping at run time in authoring mode.
See Also
For Developers: Mapping at Design Time
For Help Authors: Mapping in Authoring Mode
Advanced Features
11
In Visual Studio, the C1DynamicHelp component includes a smart tag. A smart tag ( )
represents a short-cut tasks menu that provides the most commonly used properties for a
control.
To access the C1DynamicHelp Tasks menu, click the smart tag in the upper-right corner of the
C1DynamicHelp control.
HelpSource Property
Click the ellipsis button to locate and select the .chm or NetHelp .htm file that will be
used for topic mapping.
Note:If using NetHelp, use the default.htm or the file name that was used as the base URL
for the NetHelp target.
DefaultTrigger Property
The DefaultTrigger property allows you to specify whether the Help topic will appear
when the control has the focus (Enter), the mouse is hovering over the control
(MouseEnter), or not at all (None).
12
See Also
Specifying the Source Help File
Mapping a Topic to a Control at Design Time
Preparing C1DynamicHelp for Authoring Mode
From the Toolbox, double-click the C1DynamicHelp control to add it to your form. If
you have not already added the C1DynamicHelp control to the Toolbox, see Adding the
C1DynamicHelp Component to a Project.
13
2.
3.
4.
5.
2.
3.
4.
5.
From the Toolbox, double-click the C1DynamicHelp control to add it to your form. An
extender property, Help Topic on C1DynamicHelp, is added to all controls when
C1DynamicHelp is added to the form.
Click the C1DynamicHelp smart tag ( ) to open the Tasks menu.
Click the ellipsis button next to the HelpSource property.
Locate and select the desired Help file, and click Open.
Select one of the controls on your form and click the ellipsis button next to the
HelpTopic on C1DynamicHelp property in the Properties window. The Select Help
Topic dialog box appears and shows the Table of Contents tab and TOC from the
specified Help file.
By default, the Use default events check box is selected (the selected options will vary
by the control youve chosen to map to). Got focus sets the Help topic to display when
the control has been selected; Mouse hover sets the Help topic to display when the
control has been hovered over. To change the default options, clear the Use default
events check box and select either the Got focus or Mouse hover check box.
14
o
o
If mapping to the TOC: From the Select Help Topic dialog box, Table of
Contents tab, choose a topic.
If mapping to the context ID list: From the Select Help Topic dialog box,
Context ID tab, choose the context ID/Topic pairing.
Note: In order to map to a topic, the topic must be in the Help TOC or have a context ID
assigned to it; otherwise, it will not appear in the Select Help Topic dialog box. Also, if the
Help author renames one of the TOC items, the mapping will break. You must get the
updated Help and re-create the mapping with the updated TOC.
6.
Click OK to close the Select Help Topic dialog box. The topic is mapped to the control
and appears in the C1DynamicHelp Help window at run time when a user clicks or
mouses over the control.
15
3.
4.
Select View | Code so you can add code to override the OnKeyDown method and
specify a keystroke combination to activate and deactivate authoring mode.
Add the following code:
To write code in Visual Basic
Visual Basic
Copy Code
Copy Code
16
Default.htm.xml or HelpFileName.chm.xml
When you create mappings, they are saved to the default.htm.xml or
HelpFileName.chm.xml located in the same directory as your source Help file, by
default. This XML is used to show the topics when the application runs.
You cannot begin mapping until you place your Help into the correct folder. NetHelp or .chm
files should be copied to the install folder specified by the software developer for your
application (for example: \\program files\componentone\DocToHelp\Help).
When you have finished mapping topics, the .chm or NetHelp project files and the .xml
containing the topic mappings must be given to the software developer.
Note: The .xml mapping file should never be edited manually. If mappings need to be
deleted, use the C1DynamicHelp authoring mode (see below).
17
Information about the control being mapped to is provided in the Selected control area of the
panel, which is made up of the following fields:
Control Control name : type of control.
Path
The path of the control relative to its placement on the form. For example, a Node
within a TreeView control may have a path that looks like this:
Form1\TreeView1\Node0.
Type
Type of control.
Topic
The software developer controls how you to activate and deactivate authoring mode.
See Also
Mapping a Topic to a Control in Authoring Mode
Removing the Topic Mapping for a Selected Control
Assign a Topic to a Parent Control
18
2.
Display the area of the application's interface that you would like to map. For example,
if you are going to map ribbons, make sure they are all available. If you are going to
map windows, make sure they are all open.
Activate authoring mode using the method specified by the software developer. The
authoring mode panel appears.
3.
4.
5.
By default, the Use default events check box is selected (the selected options will vary
by the control youve chosen to map to). Got focus sets the Help topic to display when
the control has been selected; Mouse hover sets the Help topic to display when the
control has been hovered over. To change the default options, clear the Use default
events check box and select either the Got focus or Mouse hover check box.
19
If mapping to the TOC: From the Select Help Topic dialog box, Table of
Contents tab, choose a topic. Click OK. The topic chosen will display in the
Topic field of the authoring mode panel.
If mapping to the context ID list: From the Select Help Topic dialog box,
Context ID tab, choose the context ID/Topic pairing. Click OK. The topic
chosen will display in the Topic field of the authoring mode panel.
Note: In order to map to a topic, the topic must be in the Help TOC or have a context ID
assigned to it; otherwise, it will not appear in the Select Help Topic dialog box. Also, if you
rename one of the TOC items, the mapping will break. Simply drop the updated Help into
the proper folder and re-create the mapping with the updated TOC.
6.
7.
8.
9.
Activate authoring mode using the method specified by the software developer. The
authoring mode panel appears.
2.
3.
4.
5.
20
1.
Activate authoring mode using the method specified by the software developer. The
authoring mode panel appears.
2.
3.
4.
5.
6.
7.
8.
Advanced Features
DynamicHelp for WinForms requires almost no programming to be used in most cases, but
sometimes you may want to use the best of it. The following advanced features are described in
this topic:
See Also
Displaying any Help Format
Mapping to Control Parts or Custom Controls
21
HTML help;
NetHelp;
MS Help 2.0;
WinHelp;
RoboHelp WebHelp;
and so on.
C1DynamicHelp provides means for displaying these or any other help formats.
HTML Help and NetHelp formats can be displayed by the C1DynamicHelp control without any
additional programming. There are two built-in help providers in C1DynamicHelp, ChmProvider
and NetHelpProvider, which are used automatically when the HelpSource property points to a
.chm or an .htm/html file, correspondingly.
Any other types of help files can be used, but this requires some additional programming. In
this case you will have to create your own help provider class that implements the IHelpProvider
interface. This interface provides all necessary information about a help format to the
C1DynamicHelp control. So any help provider can read data from a help source and provides
methods to get help topics, to get context IDs, to open help in an external window, to get a
topic URL that can be displayed by the C1DynamicHelp control, and so on. After creating your
own help provider, all you need is to set it to the Provider property.
For more details see:
22
You have no need to create objects of UIElementResolver type, it is sufficient to define a class
derived from UIElementResolver and override its virtual methods. These overridden methods
must provide necessary information about UI elements inside custom controls used in your
application: methods to find UI elements inside a control by name, coordinates, etc., and other
methods necessary for associating dynamic help to UI elements inside a control.
C1DynamicHelp automatically handles most popular, standard controls. For example, it allows
mapping a topic to all standard .Net controls and to their parts. So, for example, you can
associate a help topic to a separate node of the standard TreeView control or to a separate
ListViewItem of the ListView control; that you can do without creating your own
UIElementResolver class.
For more details see:
the UIElementResolver class, from which you derive your own UI element resolver class;
the Resolver property;
the UsingUIElementResolver sample, which shows how to create custom UI element
resolver for the C1Ribbon control to allow mapping topics to items inside C1Ribbon
such as tabs, buttons, groups, etc.
See Also
Tutorial 1: Mapping Help Topics at Design Time
Tutorial 2: Mapping Help Topics in Authoring Mode
See Also
Step 1 of 6: Add controls to the Windows form
Step 2 of 6: Set up the C1DynamicHelp control
Step 3 of 6: Associate topics with controls on the form
Step 4 of 6: Associate a topic with the form
23
2.
3.
4.
5.
Create a .NET project and add the C1DynamicHelp control to the Toolbox. An extender
property, Help Topic on C1DynamicHelp, is added to all controls when
C1DynamicHelp is added to the form.
From the Toolbox, double-click the C1DynamicHelp control. It docks at the right of your
form.
Add a TextBox control to the form:
1. From the Toolbox, double-click the TextBox control to add it to your form.
2. From the Properties window, set the textBox1.Text property to Show topic on
got focus.
Add a Button control to the form:
1. From the Toolbox, double-click the Button control to add it to your form.
2. From the Properties window, set the button1.Text property to Show topic on
mouse hover.
Add a CheckBox control to the form:
1. From the Toolbox, double-click the CheckBox control to add it to your form.
2. From the Properties window, set the checkBox1.Text property to Show topic
programmatically.
You have successfully added the controls to your form, which should look similar to the
following:
24
Select Button1 and click the ellipsis button next to the HelpTopic on
C1DynamicHelp1 property in the Properties window. The Select Help Topic dialog
box opens:
25
2.
3.
4.
Select any help topic from the Table of Contents tab and click OK. In this example, we
will select the Overview topic.
Select TextBox1 and set its HelpTopic on C1DynamicHelp1 property to any topic
from the Table of Contents tab.
In the Events group of the Select Help Topic dialog box, uncheck Use default events
and check the Got focus checkbox next to Show on events.
Unchecking Use default events allows you to specify the events on a per-control basis.
Otherwise, the DefaultTrigger property is used for all controls. Using the Events
settings makes showing topics automatic when a control obtains focus or the mouse
hovers over it, or in both cases. But if you want manual control over what triggers topic
display, you can uncheck both check boxes (or set DefaultTrigger=None; this will do it
for all controls if it's not overridden on a per-control basis) and show topics
programmatically.
5.
Click OK.
Select Form1 and click the ellipsis button next to the HelpTopic on C1DynamicHelp1
property in the Properties window. The Select Help Topic dialog box appears, but
notice the Events group is different; in this case, it has one check box Always show
default topic first on form open.
The topic associated with the form is the default topic. It is shown when the control that
displays the current topic due to a focus/mouse hover event loses focus/mouse hover.
26
If the check box Always show default topic first on form open is checked, the default
topic is also shown when the form is opened.
2.
Copy Code
27
C#
Copy Code
Congratulations, you have successfully completed Tutorial 1! In this tutorial you have learned
how to:
28
See Also
Step 1 of 4: Add controls to the Windows form
Step 2 of 4: Set up the C1DynamicHelp control
Step 3 of 4: Using authoring mode
Step 4 of 4: Run the Application
4.
Create a .NET project and add the C1DynamicHelp control to the Toolbox.
From the Toolbox, double-click the C1DynamicHelp control. It docks at the right of your
form.
Add a TextBox control to the form:
1. From the Toolbox, double-click the TextBox control to add it to your form.
2. From the Properties window, set the textBox1.Text property to Show topic on
got focus.
Add the TreeView control to the form:
1. From the Toolbox, double-click the TreeView control to add it to your form.
2. From the Properties window, add nodes to the treeView1 according to the
following image:
29
Copy Code
30
Copy Code
Create a handler for the Form_Load event and insert the following code to
instruct the C1DynamicHelp control to subscribe the controls to the events for
showing topics:
To write code in Visual Basic
Visual Basic
Copy Code
Copy Code
31
Create a handler for the Form_Closing event and insert the following code to ask the
user whether to save changes made in the topic map:
To write code in Visual Basic
Visual Basic
Copy Code
Copy Code
32
Run the application from the software developer and press the Ctrl+Shift+A keys
together to activate authoring mode. The authoring mode panel appears.
2.
2.
3.
2.
3.
4.
5.
6.
Note: In authoring mode you have the ability to associate topics with objects whose class
is not derived from Component, such as TreeNode or ListBox items. This cannot be done
at design time, because there is no Component to set for the HelpTopic on
33
C1DynamicHelp1 property.
4.
Note: If you close the application without saving the control/topic mapping, a dialog box
will appear, prompting you to save the changes.
5.
6.
7.
8.
The topic map is saved to the same location as the Help file specified in the HelpSource
property. It will also have the same name as the specified Help file, only with an .xml
extension. In this example, the topic map can be found in the C1Sample.chm.xml file.
It should now look like this:
XML code
<Dictionary>
<item>
<key>Form1\textBox1</key>
<value>WordDocuments/glossaryofterms.htm</value>
<events useDefaultEvents="False">1</events>
</item>
<item>
<key>Form1\treeView1\Node1</key>
<value>WordDocuments/howtousec1dynamichelp.htm</value>
<events useDefaultEvents="True">3</events>
</item>
<item>
<key>Form1\treeView1\Node0</key>
<value>WordDocuments/overview.htm</value>
<events useDefaultEvents="True">3</events>
</item>
<item>
<key>Form1\treeView1\Node1\Node2</key>
<value>WordDocuments/designtimesupport.htm</value>
<events useDefaultEvents="True">3</events>
</item>
<item>
<key>Form1\treeView1\Node1\Node3</key>
<value>WordDocuments/runtimesupport.htm</value>
<events useDefaultEvents="True">3</events>
</item>
</Dictionary>
Give the C1Sample.chm.xml file, along with the updated Help file(s), if changed, to the
software developer.
34
When the mouse hovers over the TreeView nodes, the specified topics are displayed.
Only when TextBox1 gets the focus will it display a topic.
Congratulations, you have successfully completed Tutorial 2! In this tutorial you have learned
how to:
API Reference
The following topics contain the API reference for DynamicHelp for WinForms.
See Also
C1.Win.C1DynamicHelp.4 Assembly
C1.Win.C1DynamicHelp.4 Assembly
Namespaces
C1.Win.C1DynamicHelp Namespace
Overview
Classes
35
Class
Description
C1DynamicHelp
Conflict
HelpTopic
HelpTopicList
MapItem
TopicEventArgs
TopicMap
Class used to store combinations of topics and user actions that cause
their display.
UIElementInfo
Delegates
Delegate
Description
Enumerations
Enumeration
Description
DisplayTarget
36
HelpTab
UIElementEvents
See Also
Reference
C1.Win.C1DynamicHelp.4 Assembly
Classes
C1DynamicHelp
Provides dynamic help for applications.
Object Model
Syntax
Visual Basic (Declaration)
Public Class C1DynamicHelp
Inherits System.Windows.Forms.Control
C#
public class C1DynamicHelp : System.Windows.Forms.Control
Remarks
The C1DynamicHelp control displays help topics from CHM, NetHelp and other help files.
The HelpSource property specifies the help file containing the documentation.
Topics in the help file can be associated with components in the application either by a
programmer at design time, using the HelpTopic extender property, or without programmers,
using the control's 'authoring mode' facilities.
37
Inheritance Hierarchy
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.Control
C1.Win.C1DynamicHelp.C1DynamicHelp
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
C1DynamicHelp Members
C1.Win.C1DynamicHelp Namespace
Overview
Provides dynamic help for applications.
Object Model
Syntax
Visual Basic (Declaration)
Public Class C1DynamicHelp
Inherits System.Windows.Forms.Control
C#
public class C1DynamicHelp : System.Windows.Forms.Control
Remarks
The C1DynamicHelp control displays help topics from CHM, NetHelp and other help files.
The HelpSource property specifies the help file containing the documentation.
Topics in the help file can be associated with components in the application either by a
programmer at design time, using the HelpTopic extender property, or without programmers,
using the control's 'authoring mode' facilities.
Inheritance Hierarchy
38
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.Control
C1.Win.C1DynamicHelp.C1DynamicHelp
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
C1DynamicHelp Members
C1.Win.C1DynamicHelp Namespace
Members
Properties Methods Events
Public Constructors
Name
Description
Public Properties
Name
Description
AccessibilityObject
AccessibleName
AccessibleRole
39
Anchor
AuthoringMode
AutoScrollOffset
BindingContext
BorderStyle
Bottom
Bounds
Browser
CanFocus
CanSelect
Capture
CausesValidation
ClientRectangle
ClientSize
CompanyName
Container
(Inherited from
System.ComponentModel.Component)
40
ContainsFocus
ContextMenu
ContextMenuStrip
Controls
Created
CurrentTopic
DataBindings
DefaultTrigger
DisplayRectangle
Disposing
Dock
Focused
Handle
HasChildren
Height
HelpSource
41
IsAccessible
IsDisposed
IsHandleCreated
IsMirrored
IsPinnedDown
LayoutEngine
Left
Location
MainControl
Margin
MaximumSize
MinimumSize
MouseHoverDelay
Name
42
Parent
PreferredSize
ProductName
ProductVersion
Provider
RecreatingHandle
Region
Resolver
Right
Site
Size
TabIndex
TabStop
Tag
Top
TopicMap
TopLevelControl
Visible
43
Width
Top
Public Methods
Name
Description
BeginInvoke
BringToFront
Contains
CreateControl
CreateGraphics
CreateObjRef
Dispose()
DoDragDrop
DrawToBitmap
EndInvoke
FindForm
Focus
GetChildAtPoint
GetContainerControl
GetHelpTopic
44
GetLifetimeService
GetNextControl
GetPreferredSize
Hide
InitializeLifetimeService
Invalidate
Invoke
PerformLayout
PointToClient
PointToScreen
PreProcessControlMessage
PreProcessMessage
RectangleToClient
RectangleToScreen
Refresh
ResetText
ResumeLayout
Scale
Select
45
SelectNextControl
SendToBack
SetBounds
SetHelpTopic
Show
ShowDefaultTopic
ShowExternalHelp
ShowTopic
ToString
Update
Top
Public Events
Name
Description
CausesValidationChanged
ClientSizeChanged
46
ContextMenuChanged
ControlRemoved
CurrentTopicChanged
CurrentTopicChanging
Disposed
DockChanged
GotFocus
HandleCreated
HandleDestroyed
Invalidated
LocationChanged
LostFocus
MarginChanged
Move
ParentChanged
PreviewKeyDown
RegionChanged
47
Resize
SizeChanged
SystemColorsChanged
TabIndexChanged
TabStopChanged
Validated
Validating
VisibleChanged
Top
See Also
Reference
C1DynamicHelp Class
C1.Win.C1DynamicHelp Namespace
C1DynamicHelp Constructor
Creates a new instance of the C1DynamicHelp control.
Syntax
Visual Basic (Declaration)
Public Function New()
C#
public C1DynamicHelp()
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
48
Reference
C1DynamicHelp Class
C1DynamicHelp Members
Methods
>
Name
Description
BeginInvoke
BringToFront
Contains
CreateControl
CreateGraphics
CreateObjRef
Dispose()
DoDragDrop
DrawToBitmap
EndInvoke
FindForm
Focus
GetChildAtPoint
GetContainerControl
GetHelpTopic
GetLifetimeService
GetNextControl
GetPreferredSize
Hide
InitializeLifetimeService
Invalidate
49
Invoke
PerformLayout
PointToClient
PointToScreen
RectangleToClient
RectangleToScreen
Refresh
ResetText
ResumeLayout
Scale
Select
SelectNextControl
SendToBack
SetBounds
SetHelpTopic
Show
ShowDefaultTopic
ShowExternalHelp
ShowTopic
ShowTopicForActiveControl
SuspendLayout
ToString
Update
50
Top
See Also
Reference
C1DynamicHelp Class
C1.Win.C1DynamicHelp Namespace
GetHelpTopic Method
Represents a UI element associated with a help topic.
Gets the MapItem object currently associated with a given UI element.
Syntax
Visual Basic (Declaration)
Public Function GetHelpTopic( _
ByVal uiElement As Component _
) As MapItem
C#
public MapItem GetHelpTopic(
Component uiElement
)
Parameters
uiElement
Represents a UI element associated with a help topic.
Return Value
The MapItem object associated with the specified UI element.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows
Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported
with SP1 or later), Windows Server 2003 SP2
See Also
Reference
C1DynamicHelp Class
C1DynamicHelp Members
51
SetHelpTopic Method
Object associated with the help topic.
The MapItem object to associate with the uiElement.
Associates a MapItem object with a UI element.
Syntax
Visual Basic (Declaration)
Public Sub SetHelpTopic( _
ByVal uiElement As Component, _
ByVal info As MapItem _
)
C#
public void SetHelpTopic(
Component uiElement,
MapItem info
)
Parameters
uiElement
Object associated with the help topic.
info
The MapItem object to associate with the uiElement.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3,
Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server
Core supported with SP1 or later), Windows Server 2003 SP2
See Also
Reference
C1DynamicHelp Class
C1DynamicHelp Members
ShowDefaultTopic Method
Shows the topic associated with the Form where the C1DynamicHelp control is placed.
Syntax
52
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
C1DynamicHelp Class
C1DynamicHelp Members
ShowExternalHelp Method
Displays the contents of the help file in an external help viewer window instead of in the
C1DynamicHelp panel.
Overload List
Overload
Description
ShowExternalHelp(HelpTab)
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
C1DynamicHelp Class
C1DynamicHelp Members
53
ShowExternalHelp(HelpTab) Method
One of the HelpTab values.
Displays the contents of the help file in an external help viewer window instead of in the
C1DynamicHelp panel.
Syntax
Visual Basic (Declaration)
Public Overloads Sub ShowExternalHelp( _
ByVal tab As HelpTab _
)
C#
public void ShowExternalHelp(
HelpTab tab
)
Parameters
tab
One of the HelpTab values.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows
Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported
with SP1 or later), Windows Server 2003 SP2
See Also
Reference
C1DynamicHelp Class
C1DynamicHelp Members
Overload List
ShowExternalHelp(HelpTab,Object) Method
One of the HelpTab values.
Displays the contents of the help file in an external help viewer window instead of in the
C1DynamicHelp panel.
Syntax
Visual Basic (Declaration)
Public Overloads Sub ShowExternalHelp( _
54
Parameters
tab
One of the HelpTab values.
parameter
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3,
Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server
Core supported with SP1 or later), Windows Server 2003 SP2
See Also
Reference
C1DynamicHelp Class
C1DynamicHelp Members
Overload List
ShowTopic Method
Shows the topic with the given URL in the C1DynamicHelp control.
Overload List
Overload
Description
ShowTopic(String)
Shows the topic with the given URL in the C1DynamicHelp control.
55
ShowTopic(Object)
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
C1DynamicHelp Class
C1DynamicHelp Members
ShowTopic(String) Method
String that represents the topic's internal URL.
Shows the topic with the given URL in the C1DynamicHelp control.
Syntax
Visual Basic (Declaration)
Public Overloads Sub ShowTopic( _
ByVal topicUrl As String _
)
C#
public void ShowTopic(
string topicUrl
)
Parameters
topicUrl
String that represents the topic's internal URL.
Exceptions
Exception
Description
Requirements
56
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows
Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported
with SP1 or later), Windows Server 2003 SP2
See Also
Reference
C1DynamicHelp Class
C1DynamicHelp Members
Overload List
ShowTopic(HelpTopic) Method
HelpTopic object representing the topic.
Shows the given HelpTopic in the C1DynamicHelp control.
Syntax
Visual Basic (Declaration)
Public Overloads Sub ShowTopic( _
ByVal topic As HelpTopic _
)
C#
public void ShowTopic(
HelpTopic topic
)
Parameters
topic
HelpTopic object representing the topic.
Exceptions
Exception
Description
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows
Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported
with SP1 or later), Windows Server 2003 SP2
See Also
57
Reference
C1DynamicHelp Class
C1DynamicHelp Members
Overload List
ShowTopic(Int32) Method
Context id representing the topic.
Shows the topic with the given context id in the C1DynamicHelp control.
Syntax
Visual Basic (Declaration)
Public Overloads Sub ShowTopic( _
ByVal contextID As Integer _
)
C#
public void ShowTopic(
int contextID
)
Parameters
contextID
Context id representing the topic.
Exceptions
Exception
Description
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows
Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported
with SP1 or later), Windows Server 2003 SP2
See Also
Reference
C1DynamicHelp Class
C1DynamicHelp Members
Overload List
58
ShowTopic(Object) Method
Object associated with the topic to display.
Shows the topic associated in the TopicMap with a UI element in the C1DynamicHelp control.
Syntax
Visual Basic (Declaration)
Public Overloads Sub ShowTopic( _
ByVal uiElement As Object _
)
C#
public void ShowTopic(
object uiElement
)
Parameters
uiElement
Object associated with the topic to display.
Exceptions
Exception
Description
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows
Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported
with SP1 or later), Windows Server 2003 SP2
See Also
Reference
C1DynamicHelp Class
C1DynamicHelp Members
Overload List
ShowTopicForActiveControl Method
DisplayTarget where a topic will be displayed.
Shows in DisplayTarget the topic associated with the active control (control currently in focus).
59
Syntax
Visual Basic (Declaration)
Public Sub ShowTopicForActiveControl( _
ByVal displayTarget As DisplayTarget _
)
C#
public void ShowTopicForActiveControl(
DisplayTarget displayTarget
)
Parameters
displayTarget
DisplayTarget where a topic will be displayed.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows
Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported
with SP1 or later), Windows Server 2003 SP2
See Also
Reference
C1DynamicHelp Class
C1DynamicHelp Members
Properties
%%scrap%%
" -->
For a list of all members of this type, see C1DynamicHelp members.
Public Properties
Name
Description
AccessibilityObject
60
AccessibleDescription
AccessibleName
AccessibleRole
Anchor
AuthoringMode
AutoScrollOffset
BindingContext
BorderStyle
Bottom
Bounds
Browser
CanFocus
CanSelect
Capture
CausesValidation
ClientRectangle
ClientSize
61
CompanyName
Container
(Inherited from
System.ComponentModel.Component)
ContainsFocus
ContextMenu
ContextMenuStrip
Controls
Created
CurrentTopic
DataBindings
DefaultTrigger
DisplayRectangle
Disposing
Dock
Focused
Handle
62
HasChildren
Height
HelpSource
InvokeRequired
IsAccessible
IsDisposed
IsHandleCreated
IsMirrored
IsPinnedDown
LayoutEngine
Left
Location
MainControl
Margin
MaximumSize
MinimumSize
MouseHoverDelay
63
Parent
PreferredSize
ProductName
ProductVersion
Provider
RecreatingHandle
Region
Resolver
Right
Site
Size
TabIndex
TabStop
Tag
Top
64
TopicMap
TopLevelControl
Visible
Width
Top
See Also
Reference
C1DynamicHelp Class
C1.Win.C1DynamicHelp Namespace
AuthoringMode Property
Gets or sets a value indicating whether the control is currently in 'authoring mode'.
Syntax
Visual Basic (Declaration)
Public Property AuthoringMode As Boolean
C#
public bool AuthoringMode {get; set;}
Remarks
This property allows the application user to create or modify the TopicMap at run time, and
save it to an XML file. All map items created in authoring mode have their ItemType property
set to MapItemType.Dynamic.
The map items with dynamic ItemType have precedence over the items with static
MapItem.ItemType. If a UI element appears with both dynamic and static MapItem.ItemType,
the entry with the dynamic MapItem.ItemType will be used instead of the static one.
Authoring mode is typically enabled only in special builds used by control authors to create the
dynamic topic map that is shipped with the release version of the application. In most cases,
authoring mode needs to be be disabled in the release application to prevent users from
accidentally activating the authoring mode. A typical implementation can look like this:
// toggle authoring mode when the user hits ctrl+shift+a override
protected void OnKeyDown(KeyEventArgs e) { #if AUTHOR_MODE if
(e.KeyCode == Keys.A && e.Control && e.Shift) {
65
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
C1DynamicHelp Class
C1DynamicHelp Members
BorderStyle Property
Gets or sets the type of border to display around the control.
Syntax
Visual Basic (Declaration)
Public Property BorderStyle As BorderStyle
C#
public BorderStyle BorderStyle {get; set;}
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
C1DynamicHelp Class
C1DynamicHelp Members
Browser Property
Provides access to the browser object used to display the topics, so the programmer can use
browser features programmatically, for example, to navigate help topics inside the
C1DynamicHelp control.
Syntax
Visual Basic (Declaration)
66
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
C1DynamicHelp Class
C1DynamicHelp Members
ContextMenu Property
Gets or sets the shortcut menu associated with the control.
Syntax
Visual Basic (Declaration)
Public Overrides Property ContextMenu As ContextMenu
C#
public override ContextMenu ContextMenu {get; set;}
Property Value
A System.Windows.Forms.ContextMenu that represents the shortcut menu associated with the
control.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
C1DynamicHelp Class
C1DynamicHelp Members
67
ContextMenuStrip Property
Gets or sets the System.Windows.Forms.ContextMenuStrip associated with this control.
Syntax
Visual Basic (Declaration)
Public Overrides Property ContextMenuStrip As ContextMenuStrip
C#
public override ContextMenuStrip ContextMenuStrip {get; set;}
Property Value
The System.Windows.Forms.ContextMenuStrip for this control, or null if there is no
System.Windows.Forms.ContextMenuStrip. The default is null.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
C1DynamicHelp Class
C1DynamicHelp Members
CurrentTopic Property
Gets or sets the HelpTopic that is currently displayed by the C1DynamicHelp control.
Syntax
Visual Basic (Declaration)
Public Property CurrentTopic As HelpTopic
C#
public HelpTopic CurrentTopic {get; set;}
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
68
See Also
Reference
C1DynamicHelp Class
C1DynamicHelp Members
DefaultTrigger Property
Gets or sets a default HelpTopicTrigger value for the C1DynamicHelp control.
Syntax
Visual Basic (Declaration)
Public Property DefaultTrigger As HelpTopicTrigger
C#
public HelpTopicTrigger DefaultTrigger {get; set;}
Remarks
All map items in the TopicMap that have their MapItem.UseDefaultTrigger property set to true
(default) display their topic when the event specified in the DefaultTrigger property occurs. Map
items that have MapItem.UseDefaultTrigger = false specify their triggers individually in
HelpTopicTrigger.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
C1DynamicHelp Class
C1DynamicHelp Members
Dock Property
Gets or sets which control borders are docked to its parent control and determines how the
control is resized with its parent.
Syntax
Visual Basic (Declaration)
Public Overrides Property Dock As DockStyle
69
C#
public override DockStyle Dock {get; set;}
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
C1DynamicHelp Class
C1DynamicHelp Members
HelpSource Property
Gets or sets the location of the help source, such as the name of a .chm file (for HTML Help) or
the name of the main .htm file (for NetHelp).
Syntax
Visual Basic (Declaration)
Public Property HelpSource As String
C#
public string HelpSource {get; set;}
Remarks
The name of the file may be absolute or relative. In most cases, the name will be relative and
will refer to the application's bin folder.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
C1DynamicHelp Class
C1DynamicHelp Members
IsPinnedDown Property
Gets or sets a value indicating whether the current help topic is pinned down.
70
Syntax
Visual Basic (Declaration)
Public Property IsPinnedDown As Boolean
C#
public bool IsPinnedDown {get; set;}
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
C1DynamicHelp Class
C1DynamicHelp Members
MainControl Property
Gets or sets a reference to another C1DynamicHelp control which will be used as a source of
data for the current C1DynamicHelp control.
Syntax
Visual Basic (Declaration)
Public Property MainControl As C1DynamicHelp
C#
public C1DynamicHelp MainControl {get; set;}
Remarks
The current C1DynamicHelp control will use the MainControl's properties: HelpSource, Resolver,
Provider, etc instead of its own properties. It is used to place C1DynamicHelp controls on
multiple forms that will display topics from one help source. In this case you will have one main
C1DynamicHelp control and set properties for it, and all you need to do for the other
C1DynamicHelp controls is to set their MainControl property to the main C1DynamicHelp
control.
Requirements
71
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
C1DynamicHelp Class
C1DynamicHelp Members
MouseHoverDelay Property
Gets or sets the interval, in milliseconds, between the time the mouse enters a control or
component and the time the associated HelpTopic is displayed in the C1DynamicHelp control.
Syntax
Visual Basic (Declaration)
Public Property MouseHoverDelay As Integer
C#
public int MouseHoverDelay {get; set;}
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
C1DynamicHelp Class
C1DynamicHelp Members
Provider Property
Gets or sets a reference to a help provider.
Syntax
Visual Basic (Declaration)
Public Property Provider As IHelpProvider
C#
public IHelpProvider Provider {get; set;}
72
Exceptions
Exception
Description
Remarks
You should set this property only if you implement your own help provider class (an advanced
feature). A help provider can read data from a help source and provides methods to get a help
topic list, to get a dictionary of context ids and help topics, to open help in an external window,
to get a topic URL that can be displayed in a C1DynamicHelp control, etc.
There are two built-in help providers in C1DynamicHelp: ChmProvider and NetHelpProvider
which are used automatically when the HelpSource property points to a .chm or .html/.htm file
correspondingly.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
C1DynamicHelp Class
C1DynamicHelp Members
Resolver Property
Represents a class with virtual methods that are used to supply information about custom
controls used in the application.
Syntax
Visual Basic (Declaration)
Public Property Resolver As UIElementResolver
C#
public UIElementResolver Resolver {get; set;}
Remarks
This property must be set only if custom/third-party controls are used in the application and it
is necessary to associate help with parts of such controls (called UI elements, for example,
buttons on a custom ribbon control). It should provide a way to get the Name and Parent for
73
every UI element, get a UI element inside the control by coordinates, get a UI element inside
the control by name, etc.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
C1DynamicHelp Class
C1DynamicHelp Members
TopicMap Property
A dictionary that maps UI elements to MapItem objects.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property TopicMap As TopicMap
C#
public TopicMap TopicMap {get;}
Remarks
A MapItem object specifies a help topic to display and a user action that causes the display
(control getting focus, mouse hovering). This dictionary can be created at design time and
persisted as part of the form (called static mappings), or at run-time (using the controls
authoring mode) and persisted as an XML file (called dynamic mappings).
This property enables you to obtain a reference to the topic map items that are currently stored
in the C1DynamicHelp. With this reference, you can add items, remove items, and obtain a
count of the items in the collection. The TopicMap class has members that allow users to check
whether the map has changed since it was created and to persist the map to and from XML.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
74
C1DynamicHelp Class
C1DynamicHelp Members
Events
%%scrap%%
" -->
For a list of all members of this type, see C1DynamicHelp members.
Public Events
Name
Description
CausesValidationChanged
ClientSizeChanged
ContextMenuChanged
ControlRemoved
CurrentTopicChanged
CurrentTopicChanging
Disposed
DockChanged
GotFocus
HandleCreated
HandleDestroyed
Invalidated
75
LocationChanged
LostFocus
MarginChanged
Move
ParentChanged
PreviewKeyDown
RegionChanged
Resize
SizeChanged
SystemColorsChanged
TabIndexChanged
TabStopChanged
Validated
Validating
VisibleChanged
Top
See Also
Reference
C1DynamicHelp Class
C1.Win.C1DynamicHelp Namespace
CurrentTopicChanged Event
Fires after the value of the CurrentTopic has changed.
76
Syntax
Visual Basic (Declaration)
Public Event CurrentTopicChanged As EventHandler
C#
public event EventHandler CurrentTopicChanged
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
C1DynamicHelp Class
C1DynamicHelp Members
CurrentTopicChanging Event
Fires before the value of the CurrentTopic changes.
Syntax
Visual Basic (Declaration)
Public Event CurrentTopicChanging As HelpTopicEventHandler
C#
public event HelpTopicEventHandler CurrentTopicChanging
Event Data
The event handler receives an argument of type TopicEventArgs containing data related to this
event. The following TopicEventArgs properties provide information specific to this event.
Property
Description
Cancel
Topic
Requirements
77
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
C1DynamicHelp Class
C1DynamicHelp Members
Conflict
Class used in the TopicMap.Conflicts property of the TopicMap.
Object Model
Syntax
Visual Basic (Declaration)
Public Class Conflict
C#
public class Conflict
Remarks
This class contains data describing a conflict between two map items, one static, the other
dynamic. A conflict exists between two map items if they refer to the same UI element.
Inheritance Hierarchy
System.Object
C1.Win.C1DynamicHelp.Conflict
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
Conflict Members
C1.Win.C1DynamicHelp Namespace
78
Overview
Class used in the TopicMap.Conflicts property of the TopicMap.
Object Model
Syntax
Visual Basic (Declaration)
Public Class Conflict
C#
public class Conflict
Remarks
This class contains data describing a conflict between two map items, one static, the other
dynamic. A conflict exists between two map items if they refer to the same UI element.
Inheritance Hierarchy
System.Object
C1.Win.C1DynamicHelp.Conflict
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
Conflict Members
C1.Win.C1DynamicHelp Namespace
Members
Properties
Public Properties
Name
Description
79
DynamicItem
Name
Returns the name of the UI element (serving as the identifier of the static
map item).
StaticItem
UIElementPath
Top
See Also
Reference
Conflict Class
C1.Win.C1DynamicHelp Namespace
Properties
%%scrap%%
" -->
For a list of all members of this type, see Conflict members.
Public Properties
Name
Description
DynamicItem
Name
Returns the name of the UI element (serving as the identifier of the static
map item).
StaticItem
UIElementPath
Top
See Also
Reference
80
Conflict Class
C1.Win.C1DynamicHelp Namespace
DynamicItem Property
Returns the dynamic map item.
Syntax
Visual Basic (Declaration)
Public Property DynamicItem As MapItem
C#
public MapItem DynamicItem {get; set;}
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
Conflict Class
Conflict Members
Name Property
Returns the name of the UI element (serving as the identifier of the static map item).
Syntax
Visual Basic (Declaration)
Public Property Name As String
C#
public string Name {get; set;}
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
81
Reference
Conflict Class
Conflict Members
StaticItem Property
Returns the static map item.
Syntax
Visual Basic (Declaration)
Public Property StaticItem As MapItem
C#
public MapItem StaticItem {get; set;}
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
Conflict Class
Conflict Members
UIElementPath Property
Returns the UI element's path string (serving as the identifier of the dynamic map item).
Syntax
Visual Basic (Declaration)
Public Property UIElementPath As String
C#
public string UIElementPath {get; set;}
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
82
See Also
Reference
Conflict Class
Conflict Members
HelpTopic
Represents a topic in a help file.
Object Model
Syntax
Visual Basic (Declaration)
Public Class HelpTopic
C#
public class HelpTopic
Remarks
You need to explicitly create HelpTopic objects in your code only if you implement your own
help provider.
Inheritance Hierarchy
System.Object
C1.Win.C1DynamicHelp.HelpTopic
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
HelpTopic Members
C1.Win.C1DynamicHelp Namespace
Overview
Represents a topic in a help file.
83
Object Model
Syntax
Visual Basic (Declaration)
Public Class HelpTopic
C#
public class HelpTopic
Remarks
You need to explicitly create HelpTopic objects in your code only if you implement your own
help provider.
Inheritance Hierarchy
System.Object
C1.Win.C1DynamicHelp.HelpTopic
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
HelpTopic Members
C1.Win.C1DynamicHelp Namespace
Members
Properties Methods
Public Constructors
Name
Description
84
Public Properties
Name
Description
ContextID
Gets the unique numeric ID of the topic within the help system used for
context sensitive help purposes.
SubTopics
Title
Url
Top
Public Methods
Name
Description
SetCtxtId
ToString
Top
See Also
Reference
HelpTopic Class
C1.Win.C1DynamicHelp Namespace
HelpTopic Constructor
Overload List
Overload
Description
Requirements
85
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
HelpTopic Class
HelpTopic Members
HelpTopic Constructor(String,String,HelpTopicList)
A title for the help topic being created.
A URL for the help topic being created.
Child topics for the topic being created.
Creates a new instance of HelpTopic.
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal title As String, _
ByVal url As String, _
ByVal subtopics As HelpTopicList _
)
C#
public HelpTopic(
string title,
string url,
HelpTopicList subtopics
)
Parameters
title
A title for the help topic being created.
url
A URL for the help topic being created.
subtopics
Child topics for the topic being created.
86
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3,
Windows Server 2008 (Server Core not supported), Windows Server 2008 R2
(Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also
Reference
HelpTopic Class
HelpTopic Members
Overload List
HelpTopic Constructor(String,String)
A title for the help topic being created.
A URL for the help topic being created.
Creates a new instance of HelpTopic.
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal title As String, _
ByVal url As String _
)
C#
public HelpTopic(
string title,
string url
)
Parameters
title
A title for the help topic being created.
url
A URL for the help topic being created.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3,
Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server
Core supported with SP1 or later), Windows Server 2003 SP2
87
See Also
Reference
HelpTopic Class
HelpTopic Members
Overload List
Methods
%%scrap%%
" -->
For a list of all members of this type, see HelpTopic members.
Public Methods
Name
Description
SetCtxtId
ToString
Top
See Also
Reference
HelpTopic Class
C1.Win.C1DynamicHelp Namespace
SetCtxtId Method
Context ID for thisHelpTopic.
Set context ID for this HelpTopic.
Syntax
Visual Basic (Declaration)
Public Sub SetCtxtId( _
ByVal ctxtId As Integer _
)
C#
public void SetCtxtId(
int ctxtId
88
Parameters
ctxtId
Context ID for thisHelpTopic.
Remarks
This method should be used only for creating you own help provider class.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows
Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported
with SP1 or later), Windows Server 2003 SP2
See Also
Reference
HelpTopic Class
HelpTopic Members
ToString Method
Gets a string representation of this HelpTopic.
Syntax
Visual Basic (Declaration)
Public Overrides Function ToString() As String
C#
public override string ToString()
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
HelpTopic Class
HelpTopic Members
89
Properties
%%scrap%%
" -->
For a list of all members of this type, see HelpTopic members.
Public Properties
Name
Description
ContextID
Gets the unique numeric ID of the topic within the help system used for
context sensitive help purposes.
SubTopics
Title
Url
Top
See Also
Reference
HelpTopic Class
C1.Win.C1DynamicHelp Namespace
ContextID Property
Gets the unique numeric ID of the topic within the help system used for context sensitive help
purposes.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property ContextID As Integer
C#
public int ContextID {get;}
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
90
See Also
Reference
HelpTopic Class
HelpTopic Members
SubTopics Property
Gets the list of child topics.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property SubTopics As HelpTopicList
C#
public HelpTopicList SubTopics {get;}
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
HelpTopic Class
HelpTopic Members
Title Property
Gets the name of the help topic.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Title As String
C#
public string Title {get;}
Requirements
91
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
HelpTopic Class
HelpTopic Members
Url Property
Gets the topic URL relative to the help source.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Url As String
C#
public string Url {get;}
Remarks
Since this is the relative URL, the help viewer/browser may be unable to display topics given
only that URL. Full URL can be obtained from the IHelpProvider.GetFullUrl method.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
HelpTopic Class
HelpTopic Members
HelpTopicList
List of HelpTopic objects.
Object Model
Syntax
92
Inheritance Hierarchy
System.Object
System.Collections.Generic.List<T>
C1.Win.C1DynamicHelp.HelpTopicList
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
HelpTopicList Members
C1.Win.C1DynamicHelp Namespace
Overview
List of HelpTopic objects.
Object Model
Syntax
Visual Basic (Declaration)
Public Class HelpTopicList
Inherits System.Collections.Generic.List(Of HelpTopic)
C#
public class HelpTopicList : System.Collections.Generic.List<HelpTopic>
Inheritance Hierarchy
93
System.Object
System.Collections.Generic.List<T>
C1.Win.C1DynamicHelp.HelpTopicList
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
HelpTopicList Members
C1.Win.C1DynamicHelp Namespace
Members
Properties Methods
Public Constructors
Name
Description
HelpTopicList Constructor
Top
Public Properties
Name
Description
Capacity
Count
Item
Top
Public Methods
Name
Description
Add
94
AddRange
AsReadOnly
BinarySearch
Clear
Contains
ConvertAll
CopyTo
Exists
Find
FindAll
FindIndex
FindLast
FindLastIndex
ForEach
GetEnumerator
GetRange
IndexOf
Insert
InsertRange
95
LastIndexOf
Remove
RemoveAll
RemoveAt
RemoveRange
Reverse
Sort
ToArray
TrimExcess
TrueForAll
Top
See Also
Reference
HelpTopicList Class
C1.Win.C1DynamicHelp Namespace
HelpTopicList Constructor
Syntax
Visual Basic (Declaration)
Public Function New()
C#
public HelpTopicList()
Requirements
96
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
HelpTopicList Class
HelpTopicList Members
MapItem
Class containing a pair consisting of a topic and a user action triggering its display.
Object Model
Syntax
Visual Basic (Declaration)
Public Class MapItem
C#
public class MapItem
Remarks
Objects of this class are stored in the TopicMap dictionary. Map items are created automatically
at design time and in authoring mode. You can also create them at run time programmatically.
Map items created at design time have their ItemType property set to MapItemType.Static,
whereas map items created in authoring mode have their ItemType property set to
MapItemType.Dynamic. If you create a map item programmatically, you can set this property to
any of the two values.
Inheritance Hierarchy
System.Object
C1.Win.C1DynamicHelp.MapItem
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
97
Reference
MapItem Members
C1.Win.C1DynamicHelp Namespace
Overview
Class containing a pair consisting of a topic and a user action triggering its display.
Object Model
Syntax
Visual Basic (Declaration)
Public Class MapItem
C#
public class MapItem
Remarks
Objects of this class are stored in the TopicMap dictionary. Map items are created automatically
at design time and in authoring mode. You can also create them at run time programmatically.
Map items created at design time have their ItemType property set to MapItemType.Static,
whereas map items created in authoring mode have their ItemType property set to
MapItemType.Dynamic. If you create a map item programmatically, you can set this property to
any of the two values.
Inheritance Hierarchy
System.Object
C1.Win.C1DynamicHelp.MapItem
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
MapItem Members
C1.Win.C1DynamicHelp Namespace
98
Members
" -->
Public Constructors
Name
Description
Public Properties
Name
Description
HelpTopic
HelpTopicTrigger
ItemType
Gets or sets a value indicating whether the default topic (the topic
associated with the form) should be always displayed when the form
ShowDefaultTopicFirst
is loaded and becomes visible, even if a UI element inside the form
got focus and has a topic associated with it.
UIElement
Url
UseDefaultTrigger
Top
Public Methods
Name
ToString
Description
Returns a string representation of a MapItem, which is the topic URL.
Top
See Also
Reference
MapItem Class
C1.Win.C1DynamicHelp Namespace
99
MapItem Constructor
Initializes a new of instance of a MapItem
Syntax
Visual Basic (Declaration)
Public Function New()
C#
public MapItem()
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
MapItem Class
MapItem Members
Methods
>
Name
ToString
Description
Returns a string representation of a MapItem, which is the topic URL.
Top
See Also
Reference
MapItem Class
C1.Win.C1DynamicHelp Namespace
ToString Method
Returns a string representation of a MapItem, which is the topic URL.
Syntax
Visual Basic (Declaration)
Public Overrides Function ToString() As String
100
C#
public override string ToString()
Return Value
A System.String that represents the current MapItem.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
MapItem Class
MapItem Members
Properties
%%scrap%%
" -->
For a list of all members of this type, see MapItem members.
Public Properties
Name
Description
HelpTopic
HelpTopicTrigger
ItemType
ShowDefaultTopicFirst Gets or sets a value indicating whether the default topic (the topic
associated with the form) should be always displayed when the
form is loaded and becomes visible, even if a UI element inside the
form got focus and has a topic associated with it.
UIElement
Url
101
UseDefaultTrigger
Top
See Also
Reference
MapItem Class
C1.Win.C1DynamicHelp Namespace
HelpTopic Property
Gets the HelpTopic object by the Url value.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property HelpTopic As HelpTopic
C#
public HelpTopic HelpTopic {get;}
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
MapItem Class
MapItem Members
HelpTopicTrigger Property
Specifies what triggers the topic display.
Syntax
Visual Basic (Declaration)
Public Property HelpTopicTrigger As HelpTopicTrigger
102
C#
public HelpTopicTrigger HelpTopicTrigger {get; set;}
Remarks
This property is used only if the UseDefaultTrigger property is set to false. If UseDefaultTrigger
is set to true, this property is ignored and C1DynamicHelp.DefaultTrigger property is used
instead.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
MapItem Class
MapItem Members
ItemType Property
Gets or sets an item type.
Syntax
Visual Basic (Declaration)
Public Property ItemType As MapItemType
C#
public MapItemType ItemType {get; set;}
Remarks
Items with MapItemType.Dynamic are created in authoring mode and saved to an XML file.
Items with MapItemType.Static are created at design time and persisted as part of the form.
Items of both types can be created programmatically at run time.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
103
Reference
MapItem Class
MapItem Members
ShowDefaultTopicFirst Property
Gets or sets a value indicating whether the default topic (the topic associated with the form)
should be always displayed when the form is loaded and becomes visible, even if a UI element
inside the form got focus and has a topic associated with it.
Syntax
Visual Basic (Declaration)
Public Property ShowDefaultTopicFirst As Boolean
C#
public bool ShowDefaultTopicFirst {get; set;}
Remarks
This property is used only for top level controls (Form objects), it is ignored for other UI
elements.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
MapItem Class
MapItem Members
UIElement Property
Gets or sets a UI element for which a help topic is displayed.
Syntax
Visual Basic (Declaration)
Public Property UIElement As Object
C#
public object UIElement {get; set;}
104
Remarks
This property should be set only once and shouldn't be changed after that.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
MapItem Class
MapItem Members
Url Property
Gets or sets the URL of a help topic that will be displayed.
Syntax
Visual Basic (Declaration)
Public Property Url As String
C#
public string Url {get; set;}
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
MapItem Class
MapItem Members
UseDefaultTrigger Property
Gets or sets a value indicating whether a topic will be displayed depending on its own
HelpTopicTrigger value or on the C1DynamicHelp.DefaultTrigger value of the C1DynamicHelp
control.
Syntax
105
Remarks
If this property is set to false, the HelpTopicTrigger property is used to determine when the
topic should be shown. Otherwise, the C1DynamicHelp.DefaultTrigger value determines when
the topic will be displayed.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
MapItem Class
MapItem Members
TopicEventArgs
Provides data for a topic change event.
Object Model
Syntax
Visual Basic (Declaration)
Public Class TopicEventArgs
Inherits System.ComponentModel.CancelEventArgs
C#
public class TopicEventArgs : System.ComponentModel.CancelEventArgs
Inheritance Hierarchy
System.Object
System.EventArgs
106
System.ComponentModel.CancelEventArgs
C1.Win.C1DynamicHelp.TopicEventArgs
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
TopicEventArgs Members
C1.Win.C1DynamicHelp Namespace
Overview
Provides data for a topic change event.
Object Model
Syntax
Visual Basic (Declaration)
Public Class TopicEventArgs
Inherits System.ComponentModel.CancelEventArgs
C#
public class TopicEventArgs : System.ComponentModel.CancelEventArgs
Inheritance Hierarchy
System.Object
System.EventArgs
System.ComponentModel.CancelEventArgs
C1.Win.C1DynamicHelp.TopicEventArgs
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
107
TopicEventArgs Members
C1.Win.C1DynamicHelp Namespace
Members
Properties
Public Properties
Name
Description
Cancel
Topic
Top
See Also
Reference
TopicEventArgs Class
C1.Win.C1DynamicHelp Namespace
Properties
>
Name
Description
Cancel
Topic
Top
See Also
Reference
TopicEventArgs Class
C1.Win.C1DynamicHelp Namespace
Cancel Property
Gets or sets a value indicating whether the event should be canceled.
Syntax
Visual Basic (Declaration)
108
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
TopicEventArgs Class
TopicEventArgs Members
Topic Property
Gets a value indicating the help topic becoming current.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Topic As HelpTopic
C#
public HelpTopic Topic {get;}
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
TopicEventArgs Class
TopicEventArgs Members
TopicMap
Class used to store combinations of topics and user actions that cause their display.
Object Model
109
Syntax
Visual Basic (Declaration)
Public Class TopicMap
Inherits System.Collections.Generic.Dictionary(Of Object,MapItem)
C#
public class TopicMap : System.Collections.Generic.Dictionary<object,MapItem>
Remarks
This class is a dictionary that associates UI elements to MapItem objects that specify a help
topic to display and the user action that causes the display (control getting focus, mouse
hovering).
This class allows you to add items, remove items, and obtain a count of the items in the
collection. The TopicMap class has members that allow users to check whether the map has
changed since it was created and to persist the map to and from XML.
It can contain items of two different types: MapItemType.Dynamic and MapItemType.Static.
Map items with dynamic type are created in authoring mode, and only items of this type can be
saved to an XML file with the Save method and then loaded with the Load method. As opposed
to dynamic map items, static map items are created at design time and aren't saved to or
loaded from XML file.
Dynamic map items use a "control path" string (the name of the UI element itself prepended
with the names of all its ancestors up to the form level) as the UI element identifier. So, if you
include controls that are created dynamically, at run time, you need to call the Refresh method
that finds UI elements by their "control path" and adds them to the dynamic help system. As the
controls on the form can be created dynamically, you may need to call the Refresh method
more than once (or, for example, it can be done on timer).
Inheritance Hierarchy
System.Object
System.Collections.Generic.Dictionary<TKey,TValue>
C1.Win.C1DynamicHelp.TopicMap
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
110
Reference
TopicMap Members
C1.Win.C1DynamicHelp Namespace
Overview
Class used to store combinations of topics and user actions that cause their display.
Object Model
Syntax
Visual Basic (Declaration)
Public Class TopicMap
Inherits System.Collections.Generic.Dictionary(Of Object,MapItem)
C#
public class TopicMap : System.Collections.Generic.Dictionary<object,MapItem>
Remarks
This class is a dictionary that associates UI elements to MapItem objects that specify a help
topic to display and the user action that causes the display (control getting focus, mouse
hovering).
This class allows you to add items, remove items, and obtain a count of the items in the
collection. The TopicMap class has members that allow users to check whether the map has
changed since it was created and to persist the map to and from XML.
It can contain items of two different types: MapItemType.Dynamic and MapItemType.Static.
Map items with dynamic type are created in authoring mode, and only items of this type can be
saved to an XML file with the Save method and then loaded with the Load method. As opposed
to dynamic map items, static map items are created at design time and aren't saved to or
loaded from XML file.
Dynamic map items use a "control path" string (the name of the UI element itself prepended
with the names of all its ancestors up to the form level) as the UI element identifier. So, if you
include controls that are created dynamically, at run time, you need to call the Refresh method
that finds UI elements by their "control path" and adds them to the dynamic help system. As the
controls on the form can be created dynamically, you may need to call the Refresh method
more than once (or, for example, it can be done on timer).
Inheritance Hierarchy
111
System.Object
System.Collections.Generic.Dictionary<TKey,TValue>
C1.Win.C1DynamicHelp.TopicMap
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
TopicMap Members
C1.Win.C1DynamicHelp Namespace
Members
Properties Methods Events
Public Properties
Name
Description
Comparer
Conflicts
Count
HasChanges
Gets a value that determines whether the TopicMap has changed since it
was initialized (read from an XML file).
Item
Keys
Values
XmlSource
112
Top
Public Methods
Name
Description
Add
Clear
(Inherited from
System.Collections.Generic.Dictionary<object,MapItem>)
Contains
ContainsKey
(Inherited from
System.Collections.Generic.Dictionary<object,MapItem>)
ContainsValue
(Inherited from
System.Collections.Generic.Dictionary<object,MapItem>)
GetEnumerator
(Inherited from
System.Collections.Generic.Dictionary<object,MapItem>)
GetObjectData
(Inherited from
System.Collections.Generic.Dictionary<object,MapItem>)
Load
Remove
Overloaded. Removes the value with the specified uiElement from the
TopicMap
Save
Overloaded. Saves the TopicMap contents to an XML file with the same
name as the HelpSource with .xml extension.
113
TryGetValue
(Inherited from
System.Collections.Generic.Dictionary<object,MapItem>)
Top
Public Events
Name
Description
Top
See Also
Reference
TopicMap Class
C1.Win.C1DynamicHelp Namespace
Methods
%%scrap%%
" -->
For a list of all members of this type, see TopicMap members.
Public Methods
Name
Description
Add
Clear
(Inherited from
System.Collections.Generic.Dictionary<object,MapItem>)
Contains
ContainsKey
(Inherited from
System.Collections.Generic.Dictionary<object,MapItem>)
ContainsValue
(Inherited from
114
System.Collections.Generic.Dictionary<object,MapItem>)
GetEnumerator
(Inherited from
System.Collections.Generic.Dictionary<object,MapItem>)
GetObjectData
(Inherited from
System.Collections.Generic.Dictionary<object,MapItem>)
Load
Remove
Overloaded. Removes the value with the specified uiElement from the
TopicMap
Save
Overloaded. Saves the TopicMap contents to an XML file with the same
name as the HelpSource with .xml extension.
TryGetValue
(Inherited from
System.Collections.Generic.Dictionary<object,MapItem>)
Top
See Also
Reference
TopicMap Class
C1.Win.C1DynamicHelp Namespace
Add Method
Adds the specified uiElement and value to the TopicMap.
Overload List
Overload
Description
115
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
TopicMap Class
TopicMap Members
Add(Object,MapItem) Method
The key of the element to add.
The value of the element to add.
Adds the specified uiElement and value to the TopicMap.
Syntax
Visual Basic (Declaration)
Public Overloads Shadows Sub Add( _
ByVal uiElement As Object, _
ByVal info As MapItem _
)
C#
public new void Add(
object uiElement,
MapItem info
)
Parameters
uiElement
The key of the element to add.
info
The value of the element to add.
116
Exceptions
Exception
Description
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3,
Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server
Core supported with SP1 or later), Windows Server 2003 SP2
See Also
Reference
TopicMap Class
TopicMap Members
Overload List
Add(String,MapItem) Method
The key of the element to add.
The value of the element to add.
Adds the specified path and value to the TopicMap.
Syntax
Visual Basic (Declaration)
Public Overloads Sub Add( _
ByVal path As String, _
ByVal info As MapItem _
)
C#
public void Add(
string path,
MapItem info
)
Parameters
path
117
Exceptions
Exception
Description
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3,
Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server
Core supported with SP1 or later), Windows Server 2003 SP2
See Also
Reference
TopicMap Class
TopicMap Members
Overload List
Contains Method
The key to locate in the TopicMap.
Determines whether the TopicMap contains the specified key.
Syntax
Visual Basic (Declaration)
Public Function Contains( _
ByVal path As String _
) As Boolean
C#
public bool Contains(
string path
)
Parameters
path
118
Return Value
true if the TopicMap contains an element with the specified key; otherwise, false.
Exceptions
Exception
Description
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows
Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported
with SP1 or later), Windows Server 2003 SP2
See Also
Reference
TopicMap Class
TopicMap Members
Load Method
Loads the TopicMap contents from an XML file.
Overload List
Overload
Description
Load(String)
Load()
Loads the TopicMap contents from an XML file with the same name as the
HelpSource with .xml extension.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
TopicMap Class
TopicMap Members
119
Load(String) Method
The location of the file containing a topic map.
Loads the TopicMap contents from an XML file.
Syntax
Visual Basic (Declaration)
Public Overloads Sub Load( _
ByVal fileName As String _
)
C#
public void Load(
string fileName
)
Parameters
fileName
The location of the file containing a topic map.
Remarks
All items loaded with this method will have ItemType property set to
MapItemType.Dynamic.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows
Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported
with SP1 or later), Windows Server 2003 SP2
See Also
Reference
TopicMap Class
TopicMap Members
Overload List
Load() Method
Loads the TopicMap contents from an XML file with the same name as the HelpSource with .xml
extension.
Syntax
120
Remarks
All items loaded with this method will have ItemType property set to MapItemType.Dynamic.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
TopicMap Class
TopicMap Members
Overload List
Refresh Method
Refreshes topic map items with the ItemType property set to MapItemType.Dynamic. For every
control path in the map that does not yet have a UI element found for it, it tries to find a UI
element.
Syntax
Visual Basic (Declaration)
Public Sub Refresh()
C#
public void Refresh()
Remarks
If a UI element is found, it is added to the dynamic help system, that is, the events (focus
enter/leave, mouse hover) for it are monitored and the associated topic is shown when
triggered by those events.
Requirements
121
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
TopicMap Class
TopicMap Members
Remove Method
Removes the value with the specified uiElement from the TopicMap
Overload List
Overload
Description
Remove(Object)
Removes the value with the specified uiElement from the TopicMap
Remove(String)
Removes the value with the specified path from the TopicMap
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
TopicMap Class
TopicMap Members
Remove(Object) Method
The key of the element to remove.
Removes the value with the specified uiElement from the TopicMap
Syntax
Visual Basic (Declaration)
Public Overloads Shadows Sub Remove( _
ByVal uiElement As Object _
)
C#
122
Parameters
uiElement
The key of the element to remove.
Exceptions
Exception
Description
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows
Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported
with SP1 or later), Windows Server 2003 SP2
See Also
Reference
TopicMap Class
TopicMap Members
Overload List
Remove(String) Method
The key of the element to remove.
Removes the value with the specified path from the TopicMap
Syntax
Visual Basic (Declaration)
Public Overloads Sub Remove( _
ByVal path As String _
)
C#
public void Remove(
string path
)
Parameters
123
path
The key of the element to remove.
Exceptions
Exception
Description
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows
Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported
with SP1 or later), Windows Server 2003 SP2
See Also
Reference
TopicMap Class
TopicMap Members
Overload List
Save Method
Saves the TopicMap contents to an XML file with the same name as the HelpSource with .xml
extension.
Overload List
Overload
Description
Save()
Saves the TopicMap contents to an XML file with the same name as the
HelpSource with .xml extension.
Save(String)
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
TopicMap Class
TopicMap Members
124
Save() Method
Saves the TopicMap contents to an XML file with the same name as the HelpSource with .xml
extension.
Syntax
Visual Basic (Declaration)
Public Overloads Sub Save()
C#
public void Save()
Remarks
Only map items with ItemType set to MapItemType.Dynamic are saved to the XML file.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
TopicMap Class
TopicMap Members
Overload List
Save(String) Method
The location of the file where you want to save the topic map.
Saves the TopicMap contents to an XML file with a given name/location.
Syntax
Visual Basic (Declaration)
Public Overloads Sub Save( _
ByVal fileName As String _
)
C#
public void Save(
string fileName
125
Parameters
fileName
The location of the file where you want to save the topic map.
Remarks
Only map items with ItemType set to MapItemType.Dynamic are saved to the XML file.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows
Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported
with SP1 or later), Windows Server 2003 SP2
See Also
Reference
TopicMap Class
TopicMap Members
Overload List
Properties
%%scrap%%
" -->
For a list of all members of this type, see TopicMap members.
Public Properties
Name
Description
Comparer
Conflicts
Count
HasChanges
Gets a value that determines whether the TopicMap has changed since it
was initialized (read from an XML file).
Item
126
Keys
Values
XmlSource
Top
See Also
Reference
TopicMap Class
C1.Win.C1DynamicHelp Namespace
Conflicts Property
Gets an array of conflicting map items.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property Conflicts As Conflict()
C#
public Conflict[] Conflicts {get;}
Remarks
A conflict exists between two map items, one static and the other dynamic, when they refer to
the same UI element. In such a case, the precedence is with the dynamic map item, no error is
generated, the static map item is silently ignored.
Usually, there is no need to worry about these conflicts (mostly because static and dynamic
mappings are rarely mixed, usually either only static or only dynamic mappings are used), but in
case the programmer wants to know which items are in conflict with each other, that can be
done using this property.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
127
Reference
TopicMap Class
TopicMap Members
HasChanges Property
Gets a value that determines whether the TopicMap has changed since it was initialized (read
from an XML file).
Syntax
Visual Basic (Declaration)
Public ReadOnly Property HasChanges As Boolean
C#
public bool HasChanges {get;}
Remarks
This property is typically used in authoring mode, to check whether the TopicMap has changed
and should therefore be saved before the application closes.
It will return false if authoring mode is not used, unless the application changes the map
programmatically.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
TopicMap Class
TopicMap Members
Item Property
The UI element of the value to get or set.
Gets or sets the value associated with the specified key.
Syntax
Visual Basic (Declaration)
Public Shadows Default Property Item( _
128
Parameters
uiElement
The UI element of the value to get or set.
Property Value
The value associated with the specified key. If the specified key is not found, a get
operation throws a System.Collections.Generic.KeyNotFoundException, and a set
operation creates a new element with the specified key.
Exceptions
Exception
Description
key is null.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows
Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported
with SP1 or later), Windows Server 2003 SP2
See Also
Reference
TopicMap Class
TopicMap Members
XmlSource Property
Gets or sets an System.Xml.XmlDocument value representing a TopicMap created in authoring
mode (so it consists of dynamic map items, static map items aren't included), which is saved to
an XML file.
Syntax
129
Remarks
You can set this property instead of loading topic map from an XML file. For example, you can
choose to store the XML in application resources, create an XmlDocument at run time and
assign it to the XmlSource property.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
TopicMap Class
TopicMap Members
Events
%%scrap%%
" -->
For a list of all members of this type, see TopicMap members.
Public Events
Name
Description
Top
See Also
Reference
TopicMap Class
C1.Win.C1DynamicHelp Namespace
130
TopicMapChanged Event
Fires after changes were made in the topic map.
Syntax
Visual Basic (Declaration)
Public Event TopicMapChanged As EventHandler
C#
public event EventHandler TopicMapChanged
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
TopicMap Class
TopicMap Members
TopicMapSaved Event
Fires after the topic map is saved to an XML file.
Syntax
Visual Basic (Declaration)
Public Event TopicMapSaved As EventHandler
C#
public event EventHandler TopicMapSaved
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
131
TopicMap Class
TopicMap Members
UIElementInfo
This class contains information about a UI element: its Name and Parent.
Object Model
Syntax
Visual Basic (Declaration)
Public Class UIElementInfo
C#
public class UIElementInfo
Remarks
This class should be used only if you want to assign topics to UI elements in custom controls. If
you need to handle UI elements inside custom controls, you have to create your own
UIElementResolver object and override its virtual methods. Namely, when you override the
UIElementResolver.GetUIElementInfo method, you need to create a UIElementInfo object and
set its Name and Parent properties.
Inheritance Hierarchy
System.Object
C1.Win.C1DynamicHelp.UIElementInfo
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
UIElementInfo Members
C1.Win.C1DynamicHelp Namespace
Overview
This class contains information about a UI element: its Name and Parent.
Object Model
132
Syntax
Visual Basic (Declaration)
Public Class UIElementInfo
C#
public class UIElementInfo
Remarks
This class should be used only if you want to assign topics to UI elements in custom controls. If
you need to handle UI elements inside custom controls, you have to create your own
UIElementResolver object and override its virtual methods. Namely, when you override the
UIElementResolver.GetUIElementInfo method, you need to create a UIElementInfo object and
set its Name and Parent properties.
Inheritance Hierarchy
System.Object
C1.Win.C1DynamicHelp.UIElementInfo
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
UIElementInfo Members
C1.Win.C1DynamicHelp Namespace
Members
Properties
Public Constructors
Name
Description
133
Public Properties
Name
Description
Name
Gets or sets the name of the UIElement. The name should be unique
inside the parent control.
Parent
UIElement
Gets the UI element for which this UIElementInfo object contains data.
Top
See Also
Reference
UIElementInfo Class
C1.Win.C1DynamicHelp Namespace
UIElementInfo Constructor
Overload List
Overload
Description
UIElementInfo Constructor(Object)
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
UIElementInfo Class
UIElementInfo Members
UIElementInfo Constructor(Object)
UI element for which this UIElementInfo object contains data.
134
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal uiElement As Object _
)
C#
public UIElementInfo(
object uiElement
)
Parameters
uiElement
UI element for which this UIElementInfo object contains data.
Exceptions
Exception
Description
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows
Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported
with SP1 or later), Windows Server 2003 SP2
See Also
Reference
UIElementInfo Class
UIElementInfo Members
Overload List
UIElementInfo Constructor(Object,String,Object)
UI element for which this UIElementInfo object contains data.
Name property for the specified uiElement
Parent property for the specified uiElement
Initializes a new of instance of a UIElementInfo
135
Syntax
Visual Basic (Declaration)
Public Function New( _
ByVal uiElement As Object, _
ByVal name As String, _
ByVal parent As Object _
)
C#
public UIElementInfo(
object uiElement,
string name,
object parent
)
Parameters
uiElement
UI element for which this UIElementInfo object contains data.
name
Name property for the specified uiElement
parent
Parent property for the specified uiElement
Exceptions
Exception
Description
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3,
Windows Server 2008 (Server Core not supported), Windows Server 2008 R2
(Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also
Reference
136
UIElementInfo Class
UIElementInfo Members
Overload List
Properties
%%scrap%%
" -->
For a list of all members of this type, see UIElementInfo members.
Public Properties
Name
Description
Name
Gets or sets the name of the UIElement. The name should be unique
inside the parent control.
Parent
UIElement
Gets the UI element for which this UIElementInfo object contains data.
Top
See Also
Reference
UIElementInfo Class
C1.Win.C1DynamicHelp Namespace
Name Property
Gets or sets the name of the UIElement. The name should be unique inside the parent control.
Syntax
Visual Basic (Declaration)
Public Property Name As String
C#
public string Name {get; set;}
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
137
See Also
Reference
UIElementInfo Class
UIElementInfo Members
Parent Property
Gets or sets the parent object of the UIElement.
Syntax
Visual Basic (Declaration)
Public Property Parent As Object
C#
public object Parent {get; set;}
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
UIElementInfo Class
UIElementInfo Members
UIElement Property
Gets the UI element for which this UIElementInfo object contains data.
Syntax
Visual Basic (Declaration)
Public ReadOnly Property UIElement As Object
C#
public object UIElement {get;}
Requirements
138
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
UIElementInfo Class
UIElementInfo Members
UIElementResolver
This class provides methods to find UI elements inside a control by name, coordinates, etc, and
other methods necessary for associating dynamic help to UI elements inside a control.
Object Model
Syntax
Visual Basic (Declaration)
Public Class UIElementResolver
C#
public class UIElementResolver
Remarks
A class derived from this class is necessary only if you are using custom controls that cannot be
handled by the C1DynamicHelp control automatically and then only if you need to associate
help topics with parts (UI elements) of those controls, not with the controls themselves.
You have no need to create objects of this type, it is sufficient to define a class derived from
UIElementResolver and override its virtual methods. These overridden methods should provide
necessary information about UI elements inside custom controls used in your application.
Inheritance Hierarchy
System.Object
C1.Win.C1DynamicHelp.UIElementResolver
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
139
See Also
Reference
UIElementResolver Members
C1.Win.C1DynamicHelp Namespace
Overview
This class provides methods to find UI elements inside a control by name, coordinates, etc, and
other methods necessary for associating dynamic help to UI elements inside a control.
Object Model
Syntax
Visual Basic (Declaration)
Public Class UIElementResolver
C#
public class UIElementResolver
Remarks
A class derived from this class is necessary only if you are using custom controls that cannot be
handled by the C1DynamicHelp control automatically and then only if you need to associate
help topics with parts (UI elements) of those controls, not with the controls themselves.
You have no need to create objects of this type, it is sufficient to define a class derived from
UIElementResolver and override its virtual methods. These overridden methods should provide
necessary information about UI elements inside custom controls used in your application.
Inheritance Hierarchy
System.Object
C1.Win.C1DynamicHelp.UIElementResolver
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
140
UIElementResolver Members
C1.Win.C1DynamicHelp Namespace
Members
Methods
Public Methods
Name
Description
See Also
Reference
UIElementResolver Class
C1.Win.C1DynamicHelp Namespace
Methods
>
Name
Description
See Also
Reference
UIElementResolver Class
C1.Win.C1DynamicHelp Namespace
HandleUIElementEvent Method
A UI element for which an event occurred.
One of the UIElementEvents values, determining the type of the event (Enter or Leave).
Simulates an event for a UI element.
Syntax
Visual Basic (Declaration)
Public Sub HandleUIElementEvent( _
141
Parameters
sender
A UI element for which an event occurred.
uiElementEvent
One of the UIElementEvents values, determining the type of the event (Enter or Leave).
Remarks
You should call this method whenever one of the UIElementEvents (Enter/Leave)
occurs for a UI element that must be handled by your code, that is, the
C1DynamicHelp control cannot monitor this UI element for Enter/Leave events
automatically (because it does not have those events). By calling this method you
notify C1DynamicHelp that an event has occurred, so C1DynamicHelp can show the
topic associated with that UI element. Typical usage is to override the
ActivateUIElement method, subscribing there to some events that would help you
to detect the moments the focus enters/leaves the UI elements, and call
HandleUIElementEvent method from those event handlers. In the
HandleUIElementEvent call, the sender parameter is the UI element for which an
event occurred, and uiElementEvent is the type of the event (Enter or Leave).
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3,
Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server
Core supported with SP1 or later), Windows Server 2003 SP2
See Also
Reference
UIElementResolver Class
UIElementResolver Members
142
Enumerations
DisplayTarget
Enumeration that specifies where a topic will be displayed.
Syntax
Visual Basic (Declaration)
Public Enum DisplayTarget
Inherits System.Enum
C#
public enum DisplayTarget : System.Enum
Members
Member
Description
ControlPanel
ExternalWindow
Remarks
This enumeration is used in C1DynamicHelp.ShowTopicForActiveControl, which is typically used
when a user presses the F1 key to get help. It allows to show a topic in the C1DynamicHelp
control, in an external window or both.
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1DynamicHelp.DisplayTarget
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
143
See Also
Reference
C1.Win.C1DynamicHelp Namespace
HelpTab
Enumeration specifying the part/element of the help file to display.
Syntax
Visual Basic (Declaration)
Public Enum HelpTab
Inherits System.Enum
C#
public enum HelpTab : System.Enum
Members
Member
Description
Find
Index
Remarks
It is used by the C1DynamicHelp.ShowExternalHelp method.
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1DynamicHelp.HelpTab
Requirements
144
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
C1.Win.C1DynamicHelp Namespace
HelpTopicTrigger
Enumeration that specifies user actions that cause a HelpTopic to be displayed.
Syntax
Visual Basic (Declaration)
Public Enum HelpTopicTrigger
Inherits System.Enum
C#
public enum HelpTopicTrigger : System.Enum
Members
Member
Description
Enter
MouseEnter
None
Remarks
You can use combinations of this enumeration to show topics both on Enter and MouseHover
events.
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1DynamicHelp.HelpTopicTrigger
Requirements
145
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
C1.Win.C1DynamicHelp Namespace
MapItemType
Enumeration that specifies topic map item type.
Syntax
Visual Basic (Declaration)
Public Enum MapItemType
Inherits System.Enum
C#
public enum MapItemType : System.Enum
Members
Member
Description
Dynamic
Static
Remarks
Map items created at design time have the MapItemType.Static type, they are stored in the
form's code and cannot be saved to an XML file. Map items created in authoring mode have the
MapItemType.Dynamic type, they are saved to the XML file when the map is persisted. If you
create map items programmatically, you can choose any of these two types.
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1DynamicHelp.MapItemType
Requirements
146
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
C1.Win.C1DynamicHelp Namespace
UIElementEvents
Enumeration that specifies which of the monitored events occurred for a UI element.
Syntax
Visual Basic (Declaration)
Public Enum UIElementEvents
Inherits System.Enum
C#
public enum UIElementEvents : System.Enum
Members
Member
Description
Enter
Leave
Remarks
It is used only in the UIElementResolver.HandleUIElementEvent method to specify the type of an
event. You need this enumeration only if you use custom controls and want to associate topics
with UI elements inside them.
Inheritance Hierarchy
System.Object
System.ValueType
System.Enum
C1.Win.C1DynamicHelp.UIElementEvents
Requirements
147
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
C1.Win.C1DynamicHelp Namespace
Delegates
HelpTopicEventHandler
The source of the event.
A TopicEventArgs that contains the event data.
Represents a method that will handle the C1DynamicHelp.CurrentTopicChanging event of a
C1DynamicHelp.
Syntax
Visual Basic (Declaration)
Public Delegate Sub HelpTopicEventHandler( _
ByVal sender As Object, _
ByVal e As TopicEventArgs _
)
C#
public delegate void HelpTopicEventHandler(
object sender,
TopicEventArgs e
)
Parameters
sender
The source of the event.
e
A TopicEventArgs that contains the event data.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3,
Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server
Core supported with SP1 or later), Windows Server 2003 SP2
148
See Also
Reference
HelpTopicEventHandler Members
C1.Win.C1DynamicHelp Namespace
C1.Win.C1DynamicHelp.Providers Namespace
Overview
Classes
Class
Description
ChmProvider
The class providing the IHelpProvider functionality for HTML Help (.chm
files).
Interfaces
Interface
Description
IHelpProvider
See Also
Reference
C1.Win.C1DynamicHelp.4 Assembly
Classes
ChmProvider
The class providing the IHelpProvider functionality for HTML Help (.chm files).
Object Model
Syntax
149
Inheritance Hierarchy
System.Object
C1.Win.C1DynamicHelp.Providers.ChmProvider
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
ChmProvider Members
C1.Win.C1DynamicHelp.Providers Namespace
Overview
The class providing the IHelpProvider functionality for HTML Help (.chm files).
Object Model
Syntax
Visual Basic (Declaration)
Public Class ChmProvider
Implements IHelpProvider
C#
public class ChmProvider : IHelpProvider
Inheritance Hierarchy
System.Object
C1.Win.C1DynamicHelp.Providers.ChmProvider
150
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
ChmProvider Members
C1.Win.C1DynamicHelp.Providers Namespace
Members
Properties Methods
Public Constructors
Name
Description
ChmProvider Constructor
Top
Public Properties
Name
Description
Source
Top
Public Methods
Name
Description
CorrectUrl
GetCtxtIdMap
GetFullUrl
Returns a URL in a specific for the help provider format that can be
displayed by the C1DynamicHelp control.
151
GetTopics
GetUrlMap
See Also
Reference
ChmProvider Class
C1.Win.C1DynamicHelp.Providers Namespace
ChmProvider Constructor
Syntax
Visual Basic (Declaration)
Public Function New()
C#
public ChmProvider()
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
ChmProvider Class
ChmProvider Members
Methods
>
Name
Description
CorrectUrl
GetCtxtIdMap
152
Returns a URL in a specific for the help provider format that can be
displayed by the C1DynamicHelp control.
GetTopics
GetUrlMap
See Also
Reference
ChmProvider Class
C1.Win.C1DynamicHelp.Providers Namespace
CorrectUrl Method
URL to be checked and corrected
Checks whether the URL is in correct format and corrects it if necessary.
Syntax
Visual Basic (Declaration)
Public Function CorrectUrl( _
ByVal url As String _
) As String
C#
public string CorrectUrl(
string url
)
Parameters
url
URL to be checked and corrected
Return Value
A corrected URL if some changes were made, otherwise the initial URL value
Remarks
153
Clicking some links in a *.chm file can lead to losing the path specified in the Source
property.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows
Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported
with SP1 or later), Windows Server 2003 SP2
See Also
Reference
ChmProvider Class
ChmProvider Members
GetCtxtIdMap Method
Returns a dictionary of help topics indexed by their context IDs (contains only topics that have
context ids).
Syntax
Visual Basic (Declaration)
Public Function GetCtxtIdMap() As Dictionary(Of Integer,HelpTopic)
C#
public Dictionary<int,HelpTopic> GetCtxtIdMap()
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
ChmProvider Class
ChmProvider Members
GetFullUrl Method
Returns a URL in a specific for the help provider format that can be displayed by the
C1DynamicHelp control.
Syntax
Visual Basic (Declaration)
154
Parameters
url
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows
Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported
with SP1 or later), Windows Server 2003 SP2
See Also
Reference
ChmProvider Class
ChmProvider Members
GetTopics Method
Returns a hierarchical list of topics in the help file.
Syntax
Visual Basic (Declaration)
Public Function GetTopics() As HelpTopicList
C#
public HelpTopicList GetTopics()
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
155
ChmProvider Class
ChmProvider Members
GetUrlMap Method
Returns a dictionary of help topics indexed by their URLs (contains all topics).
Syntax
Visual Basic (Declaration)
Public Function GetUrlMap() As Dictionary(Of String,HelpTopic)
C#
public Dictionary<string,HelpTopic> GetUrlMap()
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
ChmProvider Class
ChmProvider Members
ShowExternalHelp Method
Show help navigation (in a separate window).
Overload List
Overload
Description
ShowExternalHelp(HelpTab)
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
156
ChmProvider Class
ChmProvider Members
ShowExternalHelp(HelpTab) Method
Initial help page to display, typically HelpTab.Find, HelpTab.Index, or
HelpTab.TableOfContents.
Show help navigation (in a separate window).
Syntax
Visual Basic (Declaration)
Public Overloads Sub ShowExternalHelp( _
ByVal tab As HelpTab _
)
C#
public void ShowExternalHelp(
HelpTab tab
)
Parameters
tab
Initial help page to display, typically HelpTab.Find, HelpTab.Index, or
HelpTab.TableOfContents.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows
Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported
with SP1 or later), Windows Server 2003 SP2
See Also
Reference
ChmProvider Class
ChmProvider Members
Overload List
ShowExternalHelp(HelpTab,Object) Method
Initial help page to display, typically HelpTab.Find, HelpTab.Index, or
HelpTab.TableOfContents.
Topic identifier
Show help navigation (in a separate window).
157
Syntax
Visual Basic (Declaration)
Public Overloads Sub ShowExternalHelp( _
ByVal tab As HelpTab, _
ByVal parameter As Object _
)
C#
public void ShowExternalHelp(
HelpTab tab,
object parameter
)
Parameters
tab
Initial help page to display, typically HelpTab.Find, HelpTab.Index, or
HelpTab.TableOfContents.
parameter
Topic identifier
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3,
Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server
Core supported with SP1 or later), Windows Server 2003 SP2
See Also
Reference
ChmProvider Class
ChmProvider Members
Overload List
Properties
%%scrap%%
" -->
For a list of all members of this type, see ChmProvider members.
Public Properties
158
Name
Description
Source
Top
See Also
Reference
ChmProvider Class
C1.Win.C1DynamicHelp.Providers Namespace
Source Property
Gets or sets the help file.
Syntax
Visual Basic (Declaration)
Public Property Source As String
C#
public string Source {get; set;}
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
ChmProvider Class
ChmProvider Members
NetHelpProvider
The class providing the IHelpProvider functionality for ComponentOne NetHelp.
Object Model
Syntax
159
Inheritance Hierarchy
System.Object
C1.Win.C1DynamicHelp.Providers.NetHelpProvider
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
NetHelpProvider Members
C1.Win.C1DynamicHelp.Providers Namespace
Overview
The class providing the IHelpProvider functionality for ComponentOne NetHelp.
Object Model
Syntax
Visual Basic (Declaration)
Public Class NetHelpProvider
Implements IHelpProvider
C#
public class NetHelpProvider : IHelpProvider
Inheritance Hierarchy
System.Object
C1.Win.C1DynamicHelp.Providers.NetHelpProvider
160
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
NetHelpProvider Members
C1.Win.C1DynamicHelp.Providers Namespace
Members
Properties Methods
Public Constructors
Name
Description
NetHelpProvider Constructor
Top
Public Properties
Name
Description
Source
Top
Public Methods
Name
Description
CorrectUrl
GetCtxtIdMap
GetFullUrl
Returns a URL in a specific for the help provider format that can be
displayed by the C1DynamicHelp control.
161
GetTopics
GetUrlMap
See Also
Reference
NetHelpProvider Class
C1.Win.C1DynamicHelp.Providers Namespace
NetHelpProvider Constructor
Syntax
Visual Basic (Declaration)
Public Function New()
C#
public NetHelpProvider()
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
NetHelpProvider Class
NetHelpProvider Members
Methods
%%scrap%%
" -->
For a list of all members of this type, see NetHelpProvider members.
Public Methods
162
Name
Description
CorrectUrl
GetCtxtIdMap
GetFullUrl
Returns a URL in a specific for the help provider format that can be
displayed by the C1DynamicHelp control.
GetTopics
GetUrlMap
See Also
Reference
NetHelpProvider Class
C1.Win.C1DynamicHelp.Providers Namespace
CorrectUrl Method
Url to be checked and corrected
This method is not meaningful for the NetHelpProvider. It is used only to implement the
IHelpProvider interface.
Syntax
Visual Basic (Declaration)
Public Function CorrectUrl( _
ByVal url As String _
) As String
C#
public string CorrectUrl(
163
string url
)
Parameters
url
Url to be checked and corrected
Return Value
Always the initial url
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows
Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported
with SP1 or later), Windows Server 2003 SP2
See Also
Reference
NetHelpProvider Class
NetHelpProvider Members
GetCtxtIdMap Method
Returns a dictionary of help topics indexed by their context IDs (contains only topics that have
context ids).
Syntax
Visual Basic (Declaration)
Public Function GetCtxtIdMap() As Dictionary(Of Integer,HelpTopic)
C#
public Dictionary<int,HelpTopic> GetCtxtIdMap()
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
NetHelpProvider Class
NetHelpProvider Members
164
GetFullUrl Method
Returns a URL in a specific for the help provider format that can be displayed by the
C1DynamicHelp control.
Syntax
Visual Basic (Declaration)
Public Function GetFullUrl( _
ByVal url As String _
) As String
C#
public string GetFullUrl(
string url
)
Parameters
url
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows
Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported
with SP1 or later), Windows Server 2003 SP2
See Also
Reference
NetHelpProvider Class
NetHelpProvider Members
GetTopics Method
Returns a hierarchical list of topics in the help file.
Syntax
Visual Basic (Declaration)
Public Function GetTopics() As HelpTopicList
C#
public HelpTopicList GetTopics()
Requirements
165
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
NetHelpProvider Class
NetHelpProvider Members
GetUrlMap Method
Returns a dictionary of help topics indexed by their URLs (contains all topics).
Syntax
Visual Basic (Declaration)
Public Function GetUrlMap() As Dictionary(Of String,HelpTopic)
C#
public Dictionary<string,HelpTopic> GetUrlMap()
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
NetHelpProvider Class
NetHelpProvider Members
ShowExternalHelp Method
Show help navigation (in a separate window).
Overload List
Overload
Description
ShowExternalHelp(HelpTab)
Requirements
166
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
NetHelpProvider Class
NetHelpProvider Members
ShowExternalHelp(HelpTab) Method
Initial help page to display, typically HelpTab.Find, HelpTab.Index, or
HelpTab.TableOfContents.
Show help navigation (in a separate window).
Syntax
Visual Basic (Declaration)
Public Overloads Sub ShowExternalHelp( _
ByVal tab As HelpTab _
)
C#
public void ShowExternalHelp(
HelpTab tab
)
Parameters
tab
Initial help page to display, typically HelpTab.Find, HelpTab.Index, or
HelpTab.TableOfContents.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows
Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported
with SP1 or later), Windows Server 2003 SP2
See Also
Reference
NetHelpProvider Class
NetHelpProvider Members
Overload List
167
ShowExternalHelp(HelpTab,Object) Method
Initial help page to display, typically HelpTab.Find, HelpTab.Index, or
HelpTab.TableOfContents.
Topic identifier
Show help navigation (in a separate window).
Syntax
Visual Basic (Declaration)
Public Overloads Sub ShowExternalHelp( _
ByVal tab As HelpTab, _
ByVal parameter As Object _
)
C#
public void ShowExternalHelp(
HelpTab tab,
object parameter
)
Parameters
tab
Initial help page to display, typically HelpTab.Find, HelpTab.Index, or
HelpTab.TableOfContents.
parameter
Topic identifier
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3,
Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server
Core supported with SP1 or later), Windows Server 2003 SP2
See Also
Reference
NetHelpProvider Class
NetHelpProvider Members
Overload List
Properties
>
168
Name
Source
Description
Gets or sets the help file.
Top
See Also
Reference
NetHelpProvider Class
C1.Win.C1DynamicHelp.Providers Namespace
Source Property
Gets or sets the help file.
Syntax
Visual Basic (Declaration)
Public Property Source As String
C#
public string Source {get; set;}
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
NetHelpProvider Class
NetHelpProvider Members
Interfaces
IHelpProvider
The interface that needs to be implemented by a help provider class.
Object Model
Syntax
169
Remarks
You need to know this interface only if you want to create your own custom help provider (an
advanced feature). A help provider can read data from a help source and provides methods to
get help topics, to get context IDs, to open help in an external window, to get a topic URL that
can be displayed by the C1DynamicHelp control, etc. There are two built-in help providers in
the C1DynamicHelp: ChmProvider and NetHelpProvider which are used automatically when the
HelpSource property points to a .chm or a .htm/html file, correspondingly. If you want to use
another help source type (for example, MS Help 2.0) you can do it by creating your own help
provider class implementing this interface.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
IHelpProvider Members
C1.Win.C1DynamicHelp.Providers Namespace
Overview
The interface that needs to be implemented by a help provider class.
Object Model
Syntax
Visual Basic (Declaration)
Public Interface IHelpProvider
C#
public interface IHelpProvider
170
Remarks
You need to know this interface only if you want to create your own custom help provider (an
advanced feature). A help provider can read data from a help source and provides methods to
get help topics, to get context IDs, to open help in an external window, to get a topic URL that
can be displayed by the C1DynamicHelp control, etc. There are two built-in help providers in
the C1DynamicHelp: ChmProvider and NetHelpProvider which are used automatically when the
HelpSource property points to a .chm or a .htm/html file, correspondingly. If you want to use
another help source type (for example, MS Help 2.0) you can do it by creating your own help
provider class implementing this interface.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
IHelpProvider Members
C1.Win.C1DynamicHelp.Providers Namespace
Members
Properties Methods
Public Properties
Name
Description
Source
Top
Public Methods
Name
Description
CorrectUrl
GetCtxtIdMap
171
GetFullUrl
Returns a URL in a specific for the help provider format that can be
displayed by the C1DynamicHelp control.
GetTopics
GetUrlMap
ShowExternalHelp Overloaded. Displays the contents of the help file in an external help
viewer window instead of in the C1DynamicHelp panel.
Top
See Also
Reference
IHelpProvider Interface
C1.Win.C1DynamicHelp.Providers Namespace
Methods
%%scrap%%
" -->
For a list of all members of this type, see IHelpProvider members.
Public Methods
Name
Description
CorrectUrl
GetCtxtIdMap
GetFullUrl
Returns a URL in a specific for the help provider format that can be
displayed by the C1DynamicHelp control.
GetTopics
GetUrlMap
172
topics).
ShowExternalHelp Overloaded. Displays the contents of the help file in an external help
viewer window instead of in the C1DynamicHelp panel.
Top
See Also
Reference
IHelpProvider Interface
C1.Win.C1DynamicHelp.Providers Namespace
CorrectUrl Method
URL to be checked and corrected
Checks whether the URL is in correct format and corrects it if necessary.
Syntax
Visual Basic (Declaration)
Function CorrectUrl( _
ByVal url As String _
) As String
C#
string CorrectUrl(
string url
)
Parameters
url
URL to be checked and corrected
Return Value
A corrected URL if some changes were made, otherwise the initial URL value
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows
Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported
with SP1 or later), Windows Server 2003 SP2
See Also
173
Reference
IHelpProvider Interface
IHelpProvider Members
GetCtxtIdMap Method
Returns a dictionary of help topics indexed by their context IDs (contains only topics that have
context ids).
Syntax
Visual Basic (Declaration)
Function GetCtxtIdMap() As Dictionary(Of Integer,HelpTopic)
C#
Dictionary<int,HelpTopic> GetCtxtIdMap()
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
IHelpProvider Interface
IHelpProvider Members
GetFullUrl Method
Returns a URL in a specific for the help provider format that can be displayed by the
C1DynamicHelp control.
Syntax
Visual Basic (Declaration)
Function GetFullUrl( _
ByVal url As String _
) As String
C#
string GetFullUrl(
string url
)
174
Parameters
url
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows
Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported
with SP1 or later), Windows Server 2003 SP2
See Also
Reference
IHelpProvider Interface
IHelpProvider Members
GetTopics Method
Returns a hierarchical list of topics in the help file.
Syntax
Visual Basic (Declaration)
Function GetTopics() As HelpTopicList
C#
HelpTopicList GetTopics()
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
IHelpProvider Interface
IHelpProvider Members
GetUrlMap Method
Returns a dictionary of help topics indexed by their URLs (contains all topics).
Syntax
Visual Basic (Declaration)
175
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
IHelpProvider Interface
IHelpProvider Members
ShowExternalHelp Method
Displays the contents of the help file in an external help viewer window instead of in the
C1DynamicHelp panel.
Overload List
Overload
Description
ShowExternalHelp(HelpTab)
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
IHelpProvider Interface
IHelpProvider Members
ShowExternalHelp(HelpTab) Method
One of the C1.Win.C1DynamicHelp.HelpTab values.
176
Displays the contents of the help file in an external help viewer window instead of in the
C1DynamicHelp panel.
Syntax
Visual Basic (Declaration)
Overloads Sub ShowExternalHelp( _
ByVal tab As HelpTab _
)
C#
void ShowExternalHelp(
HelpTab tab
)
Parameters
tab
One of the C1.Win.C1DynamicHelp.HelpTab values.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows
Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported
with SP1 or later), Windows Server 2003 SP2
See Also
Reference
IHelpProvider Interface
IHelpProvider Members
Overload List
ShowExternalHelp(HelpTab,Object) Method
One of the C1.Win.C1DynamicHelp.HelpTab values.
Displays the contents of the help file in an external help viewer window instead of in the
C1DynamicHelp panel.
Syntax
Visual Basic (Declaration)
Overloads Sub ShowExternalHelp( _
ByVal tab As HelpTab, _
ByVal parameter As Object _
177
)
C#
void ShowExternalHelp(
HelpTab tab,
object parameter
)
Parameters
tab
One of the C1.Win.C1DynamicHelp.HelpTab values.
parameter
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3,
Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server
Core supported with SP1 or later), Windows Server 2003 SP2
See Also
Reference
IHelpProvider Interface
IHelpProvider Members
Overload List
Properties
>
Name
Source
Description
Gets or sets the help file.
Top
See Also
Reference
IHelpProvider Interface
C1.Win.C1DynamicHelp.Providers Namespace
Source Property
Gets or sets the help file.
Syntax
178
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server
2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or
later), Windows Server 2003 SP2
See Also
Reference
IHelpProvider Interface
IHelpProvider Members
179