menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ToolTipVisualStyle - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ToolTipVisualStyle

    Implements the functionalities that holds all information stored for a ToolTipItem.

    Inheritance
    System.Object
    ShouldSerializeBasedPersisterType
    StyleInfoBase
    StyleInfoSubObjectBase
    VisualStyleBase
    ToolTipVisualStyle
    ToolTipStyleInfo
    ToolTipStyleInfo
    ToolTipStyleInfo
    Implements
    System.ComponentModel.ICustomTypeDescriptor
    System.IDisposable
    IStyleInfo
    System.ComponentModel.ISupportInitialize
    System.IFormattable
    System.IConvertible
    System.Xml.Serialization.IXmlSerializable
    IStyleInfoSubObject
    Inherited Members
    ShouldSerializeBasedPersisterType.AddNewAttributes(PropertyDescriptor, Attribute[], Int32)
    ShouldSerializeBasedPersisterType.CheckAllProperties
    ShouldSerializeBasedPersisterType.GetCustomPDC(PropertyDescriptorCollection)
    ShouldSerializeBasedPersisterType.GetNewAttributesCount(PropertyDescriptor)
    StyleInfoBase.BeginInit()
    StyleInfoBase.BeginUpdate()
    StyleInfoBase.CacheValues
    StyleInfoBase.Changed
    StyleInfoBase.Changing
    StyleInfoBase.ClearCache()
    StyleInfoBase.CopyFrom(IStyleInfo)
    StyleInfoBase.Dispose()
    StyleInfoBase.EndInit()
    StyleInfoBase.EndUpdate()
    StyleInfoBase.Equals(Object)
    StyleInfoBase.EqualsObject(Object, Object)
    StyleInfoBase.GetDefaultStyleInfoStore(StyleInfoProperty)
    StyleInfoBase.GetDefaultValue(StyleInfoProperty)
    StyleInfoBase.GetHashCode()
    StyleInfoBase.GetShortValue(StyleInfoProperty)
    StyleInfoBase.GetValue(StyleInfoProperty)
    StyleInfoBase.HasValue(StyleInfoProperty)
    StyleInfoBase.IConvertible.GetTypeCode()
    StyleInfoBase.IConvertible.ToBoolean(IFormatProvider)
    StyleInfoBase.IConvertible.ToByte(IFormatProvider)
    StyleInfoBase.IConvertible.ToChar(IFormatProvider)
    StyleInfoBase.IConvertible.ToDateTime(IFormatProvider)
    StyleInfoBase.IConvertible.ToDecimal(IFormatProvider)
    StyleInfoBase.IConvertible.ToDouble(IFormatProvider)
    StyleInfoBase.IConvertible.ToInt16(IFormatProvider)
    StyleInfoBase.IConvertible.ToInt32(IFormatProvider)
    StyleInfoBase.IConvertible.ToInt64(IFormatProvider)
    StyleInfoBase.IConvertible.ToSByte(IFormatProvider)
    StyleInfoBase.IConvertible.ToSingle(IFormatProvider)
    StyleInfoBase.IConvertible.ToString(IFormatProvider)
    StyleInfoBase.IConvertible.ToType(Type, IFormatProvider)
    StyleInfoBase.IConvertible.ToUInt16(IFormatProvider)
    StyleInfoBase.IConvertible.ToUInt32(IFormatProvider)
    StyleInfoBase.IConvertible.ToUInt64(IFormatProvider)
    StyleInfoBase.Identity
    StyleInfoBase.InheritStyle(IStyleInfo, StyleModifyType)
    StyleInfoBase.IsChanged
    StyleInfoBase.IsEmpty
    StyleInfoBase.IsSubset(IStyleInfo)
    StyleInfoBase.IsValueModified(StyleInfoProperty)
    StyleInfoBase.MergeStyle(IStyleInfo)
    StyleInfoBase.ModifyStyle(IStyleInfo, StyleModifyType)
    StyleInfoBase.OnStyleChanging(StyleInfoProperty)
    StyleInfoBase.ParseString(String)
    StyleInfoBase.ReadXml(XmlReader)
    StyleInfoBase.ResetValue(StyleInfoProperty)
    StyleInfoBase.SetStore(StyleInfoStore)
    StyleInfoBase.SetValue(StyleInfoProperty, Int16)
    StyleInfoBase.SetValue(StyleInfoProperty, Object)
    StyleInfoBase.Store
    StyleInfoBase.ToString()
    StyleInfoBase.ToString(String)
    StyleInfoBase.ToString(String, IFormatProvider)
    StyleInfoBase.Updating
    StyleInfoBase.WeakReferenceChangedListeners
    StyleInfoBase.WriteXml(XmlWriter)
    StyleInfoSubObjectBase.Data
    StyleInfoSubObjectBase.Dispose(Boolean)
    StyleInfoSubObjectBase.IntGetDefaultStyleInfo(StyleInfoProperty)
    StyleInfoSubObjectBase.OnStyleChanged(StyleInfoProperty)
    StyleInfoSubObjectBase.Owner
    StyleInfoSubObjectBase.Sip
    StyleInfoSubObjectBase.SubObjectIdentity
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    VisualStyleBase.UpdateStyles(IThemeProvider)
    Namespace: Syncfusion.WinForms.Controls.Styles
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public class ToolTipVisualStyle : VisualStyleBase, ICustomTypeDescriptor, IDisposable, IStyleInfo, ISupportInitialize, IFormattable, IConvertible, IXmlSerializable, IStyleInfoSubObject

    Constructors

    ToolTipVisualStyle()

    Initializes a new instance of the ToolTipVisualStyle class.

    Declaration
    public ToolTipVisualStyle()

    ToolTipVisualStyle(StyleInfoSubObjectIdentity)

    Initializes a new instance of the ToolTipVisualStyle class.

    Declaration
    public ToolTipVisualStyle(StyleInfoSubObjectIdentity identity)
    Parameters
    Type Name Description
    StyleInfoSubObjectIdentity identity

    A StyleInfoSubObjectIdentity that holds the identity for this StyleInfoBase.

    ToolTipVisualStyle(StyleInfoSubObjectIdentity, ToolTipVisualStyleInfoStore)

    Initializes a new instance of the ToolTipVisualStyle class.

    Declaration
    public ToolTipVisualStyle(StyleInfoSubObjectIdentity identity, ToolTipVisualStyleInfoStore store)
    Parameters
    Type Name Description
    StyleInfoSubObjectIdentity identity

    A StyleInfoSubObjectIdentity that holds the identity for this StyleInfoBase.

    ToolTipVisualStyleInfoStore store

    A ToolTipVisualStyleInfoStore that holds data for this object. All changes in this style object will be saved in the ToolTipVisualStyleInfoStore object.

    Properties

    BackColor

    Gets or sets the background color of the ToolTipItem.

    Declaration
    public Color BackColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    Default

    Gets the default style of the ToolTipItem.

    Declaration
    public static ToolTipVisualStyle Default { get; }
    Property Value
    Type
    ToolTipVisualStyle

    Font

    Gets or sets the font of the ToolTipItem.

    Declaration
    public Font Font { get; set; }
    Property Value
    Type
    System.Drawing.Font

    ForeColor

    Gets or sets the foreground color of the ToolTipItem.

    Declaration
    public Color ForeColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    GradientBrush

    Gets or sets the GradientBrush of the ToolTipItem, if is true.

    Declaration
    public BrushInfo GradientBrush { get; set; }
    Property Value
    Type
    BrushInfo

    HasBackColor

    Gets a value indicating whether the BackColor property has been modified for the current object.

    Declaration
    public bool HasBackColor { get; }
    Property Value
    Type
    System.Boolean

    HasFont

    Gets a value indicating whether the Font property has been modified for the current object.

    Declaration
    public bool HasFont { get; }
    Property Value
    Type
    System.Boolean

    HasForeColor

    Gets a value indicating whether the ForeColor property has been modified for the current object.

    Declaration
    public bool HasForeColor { get; }
    Property Value
    Type
    System.Boolean

    HasGradientBrush

    Gets a value indicating whether the GradientBrush property has been modified for the current object.

    Declaration
    public bool HasGradientBrush { get; }
    Property Value
    Type
    System.Boolean

    HasImageAlignment

    Gets a value indicating whether the ImageAlignment property has been modified for the current object.

    Declaration
    public bool HasImageAlignment { get; }
    Property Value
    Type
    System.Boolean

    HasImageSize

    Gets a value indicating whether the ImageSize property has been modified for the current object.

    Declaration
    public bool HasImageSize { get; }
    Property Value
    Type
    System.Boolean

    HasImageToTextOffset

    Gets a value indicating whether the ImageToTextOffset property has been modified for the current object.

    Declaration
    public bool HasImageToTextOffset { get; }
    Property Value
    Type
    System.Boolean

    HasSeparatorColor

    Gets a value indicating whether the SeparatorColor property has been modified for the current object.

    Declaration
    public bool HasSeparatorColor { get; }
    Property Value
    Type
    System.Boolean

    HasSeparatorPattern

    Gets a value indicating whether the SeparatorPattern property has been modified for the current object.

    Declaration
    public bool HasSeparatorPattern { get; }
    Property Value
    Type
    System.Boolean

    HasSeparatorStyle

    Gets a value indicating whether the SeparatorStyle property has been modified for the current object.

    Declaration
    public bool HasSeparatorStyle { get; }
    Property Value
    Type
    System.Boolean

    HasTextAlignment

    Gets a value indicating whether the TextAlignment property has been modified for the current object.

    Declaration
    public bool HasTextAlignment { get; }
    Property Value
    Type
    System.Boolean

    ImageAlignment

    Gets or sets the alignment of the image on the ToolTipItem.

    Declaration
    public ToolTipImageAlignment ImageAlignment { get; set; }
    Property Value
    Type
    ToolTipImageAlignment
    Remarks

    If the ToolTipItem has both the text and image and is set, the image will be positioned based on the alignment settings and text will be positioned just opposite alignment. i.e. if an image is aligned to left, text will be aligned to right position.

    ImageSize

    Gets or sets the size of the .

    Declaration
    public Size ImageSize { get; set; }
    Property Value
    Type
    System.Drawing.Size

    ImageToTextOffset

    Gets or sets the offset space between the image and text of the tooltip item.

    Declaration
    public int ImageToTextOffset { get; set; }
    Property Value
    Type
    System.Int32

    SeparatorColor

    Gets or sets the separator color of the ToolTipItem to draw separator, if is true.

    Declaration
    public Color SeparatorColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    SeparatorPattern

    Gets or sets the separator pattern of the ToolTipItem to draw separator, if is true, when is set as Custom.

    Declaration
    public float[] SeparatorPattern { get; set; }
    Property Value
    Type
    System.Single[]

    SeparatorStyle

    Gets or sets the separator style of the ToolTipItem to draw separator, if is true.

    Declaration
    public DashStyle SeparatorStyle { get; set; }
    Property Value
    Type
    System.Drawing.Drawing2D.DashStyle

    TextAlignment

    Gets or sets the TextAlignment of the ToolTipItem.

    Declaration
    public ContentAlignment TextAlignment { get; set; }
    Property Value
    Type
    System.Drawing.ContentAlignment

    Methods

    CreateSubObjectIdentity(StyleInfoProperty)

    Override this method to create a product-specific identity object for a sub object.

    Declaration
    public override StyleInfoSubObjectIdentity CreateSubObjectIdentity(StyleInfoProperty sip)
    Parameters
    Type Name Description
    StyleInfoProperty sip

    The StyleInfoProperty.

    Returns
    Type Description
    StyleInfoSubObjectIdentity

    An identity object for a sub object of this style.

    Overrides
    StyleInfoBase.CreateSubObjectIdentity(StyleInfoProperty)
    Examples

    The following code is an example how Essential Grid creates GridStyleInfoSubObjectIdentity:

    public override StyleInfoSubObjectIdentity CreateSubObjectIdentity(StyleInfoProperty sip)
    {
    	return new GridStyleInfoSubObjectIdentity(this, sip);
    }

    GetDefaultStyle()

    Gets the default style of the ToolTipItem.

    Declaration
    protected override StyleInfoBase GetDefaultStyle()
    Returns
    Type Description
    StyleInfoBase

    Default style of the ToolTipItem.

    Overrides
    VisualStyleBase.GetDefaultStyle()

    MakeCopy(StyleInfoBase, StyleInfoProperty)

    Makes an exact copy of the current object.

    Declaration
    public override IStyleInfoSubObject MakeCopy(StyleInfoBase newOwner, StyleInfoProperty sip)
    Parameters
    Type Name Description
    StyleInfoBase newOwner

    The new owner style object for the copied object.

    StyleInfoProperty sip

    The identifier for this object.

    Returns
    Type Description
    IStyleInfoSubObject

    A copy of the current object registered with the new owner style object.

    Overrides
    StyleInfoSubObjectBase.MakeCopy(StyleInfoBase, StyleInfoProperty)

    Implements

    System.ComponentModel.ICustomTypeDescriptor
    System.IDisposable
    IStyleInfo
    System.ComponentModel.ISupportInitialize
    System.IFormattable
    System.IConvertible
    System.Xml.Serialization.IXmlSerializable
    IStyleInfoSubObject
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved