DrawGrid ShowGrid SnapToGrid UseSnapLines ParticipatesWithSnapLines [英] DrawGrid ShowGrid SnapToGrid UseSnapLines ParticipatesWithSnapLines
问题描述
您好,
我正在开发Windows窗体设计器.主表单应具有3种不同的布局模式(标准,流程,网格/表格).因此,我们的想法是,仅将一个面板添加到表单-> Panel,FlowLayoutPanel或TableLayoutPanel(Dock.Fill)并将其他控件作为子项添加到该面板.
我是否必须为每个面板实现不同的设计器,或者我可以做一些设置吗?像DrawGrid,ShowGrid,SnapToGrid,UseSnapLines ParticipatesWithSnapLines或GridSize之类的属性?
如果我使用" typeof (
在MSDN库中,您可以了解到一个名为DesignerOptions的类,该类具有很多我想使用的属性,但是我不知道如何使用它,我也不知道是否我可以在我的情况下使用它.
感谢您的帮助!
丹尼尔
Hello,
I work on developing a windows forms designer. The mainform should have 3 different layoutmodes (standard, flow, grid/table). So the idea was, to just add one panel to the form -> Panel, FlowLayoutPanel or TableLayoutPanel (Dock.Fill)and add the other controls to that panel as children.
Do I have to implement a different designer for each panel or is there something I can do for setting properties like: DrawGrid, ShowGrid, SnapToGrid, UseSnapLines ParticipatesWithSnapLines or GridSize?
If I use "TypeDescriptor.CreateDesigner(IComponent, typeof(IDesigner))" for the Panels, I can´t see the grid, SnapLines are always on and SnapToGrid doesn´t work.
In the MSDN Library you can read about a class named DesignerOptions which has lots of properties I´d like to use, but I don´t know how to use it and I´m also not sure if I can use it for my case.
Thanks for helping!!
Daniel
推荐答案
标记为已死
这篇关于DrawGrid ShowGrid SnapToGrid UseSnapLines ParticipatesWithSnapLines的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!