|
Group: Forum Members
Posts: 2,
Visits: 1
|
Hi, to set the SelectedStrokeStyle property of a view, we do :
NStrokeStyle nst = new NStrokeStyle(Color.Red); nst.Width = new NLength(2); view.InteractiveAppearance.SelectedStrokeStyle = nst;
I'm trying to set the SelectedStrokeStyle property of a specific node of my View :
//ks is a specialized NNode : NStrokeStyle nst = new NStrokeStyle(Color.Red); nst.Width = new NLength(2); NInteractiveAppearance nia = new NInteractiveAppearance(); nia.SelectedStrokeStyle = nst; ks.Style.InteractivityStyle = new NInteractivityStyle(); ks.Style.InteractivityStyle.InteractivityAttributes = new NInteractivityAttributeCollection(); ks.Style.InteractivityStyle.InteractivityAttributes.Add(nst);
But that not works, how can I set the "InteractiveAppearance -> SelectedStrokeStyle" of only one Node ?
|