public PWAnchorMultiData(Color color)
 {
     //dont touych to id, it is generated by the window
     additional   = false;
     enabled      = true;
     linkCount    = 0;
     highlighMode = PWAnchorHighlight.None;
     visibility   = PWVisibility.Visible;
     this.color   = (SerializableColor)color;
     forcedY      = -1;
 }
Beispiel #2
0
        public void                             SetAnchorVisibility(string fieldName, PWVisibility visibility, int index = 0, bool removeLink = true)
        {
            PWAnchor anchor = GetAnchorFromField(fieldName, index);

            if (anchor != null)
            {
                if (visibility != PWVisibility.Visible && removeLink)
                {
                    anchor.RemoveAllLinks();
                }
                anchor.visibility = visibility;
            }
        }