DefaultTooltipAttribute.cs 445 B

1234567891011121314151617
  1. using System;
  2. namespace XCharts.Runtime
  3. {
  4. [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
  5. public sealed class DefaultTooltipAttribute : Attribute
  6. {
  7. public readonly Tooltip.Type type;
  8. public readonly Tooltip.Trigger trigger;
  9. public DefaultTooltipAttribute(Tooltip.Type type, Tooltip.Trigger trigger)
  10. {
  11. this.type = type;
  12. this.trigger = trigger;
  13. }
  14. }
  15. }