/// <summary> /// Sets the AutoSizeTextField to be added to the ShapeFieldCollection, is only run once /// </summary> /// <param name="fieldName">Non-localized name for the field</param> protected override AutoSizeTextField CreateAutoSizeTextField(string fieldName) { AutoSizeTextField newTextField = new RoleNameAutoSizeTextField(fieldName); newTextField.DefaultFocusable = true; newTextField.DefaultTextBrushId = RoleNameTextBrush; return newTextField; }
/// <summary> /// Sets the AutoSizeTextField to be added to the ShapeFieldCollection, is only run once /// </summary> /// <param name="fieldName">Non-localized name for the field</param> protected override AutoSizeTextField CreateAutoSizeTextField(string fieldName) { AutoSizeTextField newTextField = new RoleNameAutoSizeTextField(fieldName); newTextField.DefaultFocusable = true; newTextField.DefaultTextBrushId = RoleNameTextBrush; return(newTextField); }