There are three ways to add topic links to the topic pages: you can use the floating toolbar, the collection editor, or code. In this topic, you will learn how to add links to topic pages using each of these three methods.
Complete the following steps:
The topic link, Link 1, is added to the topic page.
Complete the following steps:
The topic link, Link 1, is added to the topic page.
Complete the following steps:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Imports C1.Win.C1Command |
To write code in C#
C# |
Copy Code
|
---|---|
using C1.Win.C1Command; |
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
'Find the topic page and assign it to a variable Dim c1TopicPage1 = c1TopicBar1.FindPageByTag("Tag1") 'Create a new topic link and assign it a name Dim c1TopicLink1As New C1TopicLink("Link 1") 'Add the new topic link to the topic page c1TopicPage1.Links.Add(c1TopicLink1) |
To write code in C#
C# |
Copy Code
|
---|---|
//Find the topic page and assign it to a variable var c1TopicPage1 = c1TopicBar1.FindPageByTag("Tag1"); //Create a new topic link and assign it a name C1TopicLink c1TopicLink1 = new C1TopicLink("Link 1"); //Add the new topic link to the topic page c1TopicPage1.Links.Add(c1TopicLink1); |
In this topic, you learned how to add topic links to topic pages using three different methods. The result of this topic will look as follows: