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
- element
Type: System.Windows.FrameworkElement
The element to set the ToolTipOffsets attribute for.
- 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.