GetLabelControlName() public method

Get the name to use for a label control representing a IUIFormField.
public GetLabelControlName ( IUIFormField formField ) : string
formField IUIFormField The to represent with the name.
return string
示例#1
0
        private ILabel CreateAndAddLabel(IPanelInfo panelInfo, UIFormField formField)
        {
//            IClassDef classDef = panelInfo.UIForm.UIDef.ClassDef;
            ILabel labelControl = ControlFactory.CreateLabel(formField.GetLabel(), formField.IsCompulsory);

            labelControl.Name    = _controlNamingStrategy.GetLabelControlName(formField);
            labelControl.Enabled = formField.Editable;
            SetToolTip(formField, labelControl);
            var containerControl = panelInfo.Panel;

            EnsureControlNameUnique(labelControl, containerControl);
            panelInfo.LayoutManager.AddControl(labelControl, formField.RowSpan, 1);
            return(labelControl);
        }