Share via


CommandBarButtonClass.HyperlinkType Property

Sets or gets a MsoCommandBarButtonHyperlinkType constant that represents the type of hyperlink associated with the specified command bar button. Read/write.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
Public Overridable Property HyperlinkType As MsoCommandBarButtonHyperlinkType
    Get
    Set
'Usage
Dim instance As CommandBarButtonClass
Dim value As MsoCommandBarButtonHyperlinkType

value = instance.HyperlinkType

instance.HyperlinkType = value
public virtual MsoCommandBarButtonHyperlinkType HyperlinkType { get; set; }

Property Value

Type: Microsoft.Office.Core.MsoCommandBarButtonHyperlinkType

Implements

_CommandBarButton.HyperlinkType

Examples

This example checks the HyperlinkType property for the specified command bar button on the command bar named "Custom.". If HyperlinkType is set to msoCommandBarButtonHyperlinkNone, the example sets the property to msoCommandBarButtonHyperlinkOpen and sets the URL to www.microsoft.com.

See Also

Reference

CommandBarButtonClass Class

CommandBarButtonClass Members

Microsoft.Office.Core Namespace