简体   繁体   中英

Can I use the same editor for Control.Anchor property for my own user control's designer support?

I have a simple extender component that draws 3D borders around any Control. In my designer supprot for the component, I'd like to use the same editor that VS uses to select the Anchor property.

I know I can use the [Editor()] attribute, but I don't know the class name of the editor that's used.

I used .NET Reflector to find the answer:

[Flags, 
Editor("System.Windows.Forms.Design.AnchorEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(UITypeEditor))]
public enum AnchorStyles

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM