We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Move Group/layer

Thread ID:

Created:

Updated:

Platform:

Replies:

43555 Apr 26,2006 04:43 AM Apr 27,2006 09:39 AM Windows Forms 6
loading
Tags: Diagram
Administrator [Syncfusion]
Asked On April 26, 2006 04:43 AM

Is there a way to move a layer or a layer in a page ?

Administrator [Syncfusion]
Replied On April 26, 2006 09:53 AM

Thanks Meera But ir does not explain how to MOVE the layer. It only sets it visible.

Administrator [Syncfusion]
Replied On April 26, 2006 10:00 AM

Thanks but it does explain how to programtically move the layer...

Administrator [Syncfusion]
Replied On April 26, 2006 10:15 AM

Correction: The question should be read : How to move a group/Layer (what is the best ?) in a view/model Actually, i want my user to draw some parts (each one is invisible to the other) and then position the nodes(of the group or the layer) in a certain way on the page

Administrator [Syncfusion]
Replied On April 26, 2006 10:22 AM

Hi Paul, Please refer the Diagram Samples/InDepth/NetworkFlowModel sample which demonstrates about how to use different layers ,to add nodes to the layers and make them as visible/invisible. Depending on the visible state of the layer the samples present in the layer are shown/hidden. Please let me know if you have any questions. Thanks, Meera.

Administrator [Syncfusion]
Replied On April 26, 2006 11:17 AM

I think i found how to do it via the MoveCommand. The question is how to get a INodeCollection of the nodes of a Layer > >Hi Paul, > >Please refer the Diagram Samples/InDepth/NetworkFlowModel sample which demonstrates about how to use different layers ,to add nodes to the layers and make them as visible/invisible. Depending on the visible state of the layer the samples present in the layer are shown/hidden. > >Please let me know if you have any questions. > >Thanks, >Meera.

Administrator [Syncfusion]
Replied On April 27, 2006 09:39 AM

Hi Paul, If your intention is to iterate through the nodes collection in the Layer , you can get it done by using the Layer.GetEnumerator() which returns an enumerator that can be used to iterate through the nodes in the given Layer according to their Z-order. Add the following code snippet to the NetworkFlowModel sample in particular to the toolBar_ButtonClick Event code block. if(e.Button.Tag.ToString() == "EtherNet") { Layer ethernet = this.diagram1.Model.Layers["EtherNet Layer"]; ethernet.Visible = !e.Button.Pushed; this.SetConnectingLinksVisibility(ethernet); //Iterating Layer nodes ArrayList nodesinZOrder = new ArrayList(); int count =0; IEnumerator inodes = ethernet.GetEnumerator(); while(inodes.MoveNext()) { if(inodes.Current is Symbol) { Symbol newsymbol = inodes.Current as Symbol; MessageBox.Show(newsymbol.Name.ToString(),ethernet.Name.ToString()); nodesinZOrder.Add(inodes.Current); } } } Please let me know if you have any further queries regarding this. Regards, Praveena.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;