我不能在这个范畴的,但看着类控制的源代码(从Form类派生),我可以看到这个为属性Left
[EditorBrowsable(0), SRCategory("CatLayout"), Browsable(false), DesignerSerializationVisibility(0), SRDescription("ControlLeftDescr")]
public int Left { [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get; set; }
属性EditorBrowsable(0)装置
EditorBro wsableAttribute是设计者提示是否要显示 属性或方法的提示。您可以在 可视化设计器或文本编辑器中使用此类型来确定 用户可见的内容。例如,Visual Studio中的IntelliSense引擎使用此 属性来确定是否显示属性或方法。 在Visual C#中,您可以控制高级属性何时出现在 智能感知和属性窗口中,其中隐藏高级成员 设置为工具|选项|文本编辑器| C#。相应的 EditorBrowsableState是高级的。
不幸的是,在Visual Studio 2013中删除该标志后,我也无法在属性窗口中显示这些属性作为单独条目,但是它们在弹出“智能感知”时可见。所以我只能断定它不可能改变标准属性窗口的行为。
提示要记住两个数字的相对位置: