示例#1
0
 public static void RemoveAllBindings(styleObj style)
 {
     for (int i = 0; i < mapscript.MS_STYLE_BINDING_LENGTH; i++)
     {
         style.removeBinding(i);
     }
 }
示例#2
0
        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);
            }
        }
示例#3
0
 public static void RemoveAllBindings(styleObj style)
 {
     for (int i = 0; i < mapscript.MS_STYLE_BINDING_LENGTH; i++)
     {
         style.removeBinding(i);
     }
 }