共用方式為


TextToolTipService.SetToolTipOffsets Method

Sets the ToolTipOffsets attribute to the specified values for the given element.

Namespace:  Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'宣告
Public Shared Sub SetToolTipOffsets ( _
    element As FrameworkElement, _
    horizontal As Integer, _
    vertical As Integer _
)
public static void SetToolTipOffsets(
    FrameworkElement element,
    int horizontal,
    int vertical
)

Parameters

  • horizontal
    Type: System.Int32
    The value to set the ToolTipOffsets horizontal to.
  • vertical
    Type: System.Int32
    The value to set the ToolTipOffsets vertical to.

.NET Framework Security

See Also

Reference

TextToolTipService Class

Microsoft.VisualStudio.PlatformUI Namespace