See Also

Tool Class  | Tool Members

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports.Viewer Send feedback to Data Dynamics

Caption Property

Gets or sets the text displayed on the tool.

[Visual Basic]
Public Property Caption As String
[C#]
public string Caption {get; set;}

Return Type

The string value of the text displayed on the tool.  The default value is an empty string.

Example

[C#] 

// Remove the default printer button 
this.viewer1.Toolbar.Tools.RemoveAt(2); 
// Create And add the custom button 
DataDynamics.ActiveReports.Toolbar.Button btn = new DataDynamics.ActiveReports.Toolbar.Button(); 
btn.Caption = "MyPrint"; 
btn.ToolTip = "Custom Print Button"; 
btn.ImageIndex = 1; 
btn.ButtonStyle = DataDynamics.ActiveReports.Toolbar.ButtonStyle.TextAndIcon; 
btn.Id = 333; 
this.viewer1.Toolbar.Tools.Insert(2,btn);

[Visual Basic] 

' Remove the default print button
Me.Viewer1.Toolbar.Tools.RemoveAt(2)
' Create and add the custom button
Dim btn As New DataDynamics.ActiveReports.Toolbar.Button()
btn.Caption = "MyPrint"
btn.ToolTip = "Custom Print Button"
btn.ImageIndex = 1
btn.ButtonStyle = DataDynamics.ActiveReports.Toolbar.ButtonStyle.TextAndIcon
btn.Id = 333
Me.Viewer1.Toolbar.Tools.Insert(2, btn)

See Also

Tool Class  | Tool Members

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.