Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 c# 中有一个自定义控件,在其中我定义了两个属性垂直对齐和水平对齐,现在我想在用户设置此属性时在编辑器中显示帮助,如文本框的 textalignment 属性设置。在帮助中我想显示以下选项:
剩下
中心
中间
像组合框帮助我该怎么做?
我想你正在寻找这个:
您可以提供该物业的摘要,例如
/// <summary> /// Horizontal Alignment : Left, Middle, Right /// </summary> public int HorizontalAlign { get; set; }
现在,当您在任何类中访问此属性并将鼠标悬停在编辑器中的水平对齐上时,摘要将显示
摘要标签生成的快捷方式是“///”(就像一个片段)
当您在属性上方键入此内容时,它会自动生成标签,您可以提供描述。