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);
} |
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 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family
See Also