public static void RemoveAllBindings(styleObj style) { for (int i = 0; i < mapscript.MS_STYLE_BINDING_LENGTH; i++) { style.removeBinding(i); } }
public override void ApplyBinding() { if (target == null) { return; } if (target.GetParent().GetParent().GetType() != typeof(layerObj)) { return; } styleObj style = target; if (BindingState) { style.setBinding((int)styleBinding, itemList.SelectedItem.ToString()); } else { style.removeBinding((int)styleBinding); } }