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 Basic | Copy 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
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