Leadtools.Windows.Annotations Requires Document/Medical license. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
ToolBarButtonImage Property
See Also 
Leadtools.Windows.Annotations Namespace > AnnAutomationObject Class : ToolBarButtonImage Property





Gets ot sets the toolbar button's BitmapSource of this AnnAutomationObject.

Syntax

Visual Basic (Declaration) 
Public Overridable Property ToolBarButtonImage As BitmapSource
Visual Basic (Usage)Copy Code
Dim instance As AnnAutomationObject
Dim value As BitmapSource
 
instance.ToolBarButtonImage = value
 
value = instance.ToolBarButtonImage
C# 
public virtual BitmapSource ToolBarButtonImage {get; set;}
C++/CLI 
public:
virtual property BitmapSource ToolBarButtonImage {
   BitmapSource get();
   void set (BitmapSource value);
}
XAML Syntax 
You cannot use this property in XAML.
XAML Syntax 
You cannot use this property in XAML.

Return Value

A BitmapSource which represents the toolbar button's Image of this AnnAutomationObject.

Example

For C#/VB examples, refer to AnnAutomationManager.

Remarks

Calling CreateToolBar will create the toolbar and all the buttons for all the automation objects in Objects. After that, you can use this property to edit the toolbar button control if needed.

The image can have any size and any bits/pixel. However, it is advised to use the same size and bits/pixel for all toolbar button images for all automation objects. A recommended toolbar button image has a size of 24 by 24.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family

See Also

ToolBarButtonImage requires a Document/Medical product license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features and Unlocking Special LEAD Features.