LEADTOOLS Annotations (Leadtools.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
UseXPStyleToolBar Property
See Also 
Leadtools.Annotations Namespace > AnnAutomationManager Class : UseXPStyleToolBar Property



Gets or sets a value that indicates whether the annotation toolbar is drawn with the new XP style look.

Syntax

Visual Basic (Declaration) 
Public Property UseXPStyleToolBar As Boolean
Visual Basic (Usage)Copy Code
Dim instance As AnnAutomationManager
Dim value As Boolean
 
instance.UseXPStyleToolBar = value
 
value = instance.UseXPStyleToolBar
C# 
public bool UseXPStyleToolBar {get; set;}
C++/CLI 
public:
property bool UseXPStyleToolBar {
   bool get();
   void set (    bool value);
}

Property Value

true to use new XP style look; otherwise, false.

Example

This example changes the automation manager. If UseXPStyleToolBar is true, the new xp style toolbar is created; otherwise, the older style annotation toolbar is created.

Visual BasicCopy Code
Public Sub AnnAutomationManager_UseXPStyleToolBar(ByVal manager As AnnAutomationManager, ByVal useXPStyleToolBar As Boolean)
   manager = New AnnAutomationManager()
   manager.UseXPStyleToolBar = useXPStyleToolBar
   manager.CreateDefaultObjects()
   manager.CreateToolBar()
   manager.ToolBar.Dock = DockStyle.Top
   manager.ToolBar.BringToFront()
   manager.ToolBar.Appearance = ToolBarAppearance.Flat
End Sub
C#Copy Code
public void AnnAutomationManager_UseXPStyleToolBar(AnnAutomationManager manager, bool useXPStyleToolBar)
{
   manager = new AnnAutomationManager();
   manager.UseXPStyleToolBar = useXPStyleToolBar;
   manager.CreateDefaultObjects();
   manager.CreateToolBar();
   manager.ToolBar.Dock = DockStyle.Top;
   manager.ToolBar.BringToFront();
   manager.ToolBar.Appearance = ToolBarAppearance.Flat;
}

Remarks

When the value of this property is true (default) the annotation toolbar will be displayed with the new XP style look. This means that the button images will be drawn with 24x24 pixel images using an alpha channel. For more information, refer to New Annotation Features of Version 14.5.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features