A jump link is a link from the jump list to an application. Jump links can be added at design time using a collection editor, or they may be added dynamically with code.
Complete the following steps:
OR
The following code creates one C1JumpLink and adds it to the jump list:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Dim c1JumpLink1 As New C1JumpLink() c1TaskbarButton1.JumpList.Items.Add(c1JumpLink1) |
To write code in C#
C# |
Copy Code
|
---|---|
C1JumpLink c1JumpLink1 = new C1JumpLink(); c1TaskbarButton1.JumpList.Items.Add(c1JumpLink1); |
If you'd like to add a range of C1JumpLinks to the jump list, you can use the AddRange method instead, like this:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Dim C1JumpLink1 As New C1JumpLink() Dim C1JumpLink2 As New C1JumpLink() C1TaskbarButton1.JumpList.Items.AddRange(New C1.Win.C1Win7Pack.C1JumpLink() {C1JumpLink1, C1JumpLink2}) |
To write code in C#
C# |
Copy Code
|
---|---|
C1JumpLink C1JumpLink1 = new C1JumpLink(); C1JumpLink C1JumpLink2 = new C1JumpLink(); c1TaskbarButton1.JumpList.Items.AddRange(new C1.Win.C1Win7Pack.C1JumpLink[] { C1JumpLink1, C1JumpLink2}); |