Leadtools.Annotations Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
UseXPStyleToolBar Property
See Also  Example
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;}
Managed Extensions for C++ 
public: __property bool get_UseXPStyleToolBar();
public: __property void set_UseXPStyleToolBar( 
   bool value
);
C++/CLI 
public:
property bool UseXPStyleToolBar {
   bool get();
   void set (bool value);
}

Return 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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

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