Files
VisionEdit/UsingControl/HZHControls/Controls/NavigationMenu/NavigationMenuItemBase.cs
eggplantlwj 62477b8091 1、修复因加入输入位姿引发的BUG
2、PMA工具完善
3、其他BUG修复
2022-03-21 14:48:26 +08:00

113 lines
3.0 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Text;
namespace HZH_Controls.Controls
{
public class NavigationMenuItemBase
{
/// <summary>
/// The icon
/// </summary>
private Image icon;
/// <summary>
/// Gets or sets the icon.
/// </summary>
/// <value>The icon.</value>
[Description("图标,仅顶级节点有效")]
public Image Icon
{
get { return icon; }
set { icon = value; }
}
/// <summary>
/// The text
/// </summary>
private string text;
/// <summary>
/// Gets or sets the text.
/// </summary>
/// <value>The text.</value>
[Description("文本")]
public string Text
{
get { return text; }
set { text = value; }
}
/// <summary>
/// The show tip
/// </summary>
private bool showTip;
/// <summary>
/// Gets or sets a value indicating whether [show tip].当TipText为空时只显示一个小圆点否则显示TipText文字
/// </summary>
/// <value><c>true</c> if [show tip]; otherwise, <c>false</c>.</value>
[Description("是否显示角标,仅顶级节点有效")]
public bool ShowTip
{
get { return showTip; }
set { showTip = value; }
}
/// <summary>
/// The tip text
/// </summary>
private string tipText;
/// <summary>
/// Gets or sets the tip text
/// </summary>
/// <value>The tip text.</value>
[Description("角标文字,仅顶级节点有效")]
public string TipText
{
get { return tipText; }
set { tipText = value; }
}
/// <summary>
/// The anchor right
/// </summary>
private bool anchorRight;
/// <summary>
/// Gets or sets a value indicating whether [anchor right].
/// </summary>
/// <value><c>true</c> if [anchor right]; otherwise, <c>false</c>.</value>
[Description("是否靠右对齐")]
public bool AnchorRight
{
get { return anchorRight; }
set { anchorRight = value; }
}
/// <summary>
/// The item width
/// </summary>
private int itemWidth = 100;
/// <summary>
/// Gets or sets the width of the item.
/// </summary>
/// <value>The width of the item.</value>
[Description("宽度")]
public int ItemWidth
{
get { return itemWidth; }
set { itemWidth = value; }
}
/// <summary>
/// Gets or sets the data source.
/// </summary>
/// <value>The data source.</value>
[Description("数据源")]
public object DataSource { get; set; }
}
}