/// <summary> /// This method returns the Field Set Field View /// </summary> public FieldSetFieldView FindFieldSetFieldView(int fieldId) { // initial value FieldSetFieldView fieldSetFieldView = null; // If the value for fieldId is greater than zero if ((fieldId > 0) && (HasFieldSetFields)) { // Iterate the collection of FieldSetFieldView objects foreach (FieldSetFieldView field in FieldSetFields) { // if this is the field being sought if (field.FieldId == fieldId) { // set the return value fieldSetFieldView = field; // break out of the loop break; } } } // return value return(fieldSetFieldView); }
public FieldSetFieldView Clone() { // Create New Object FieldSetFieldView newFieldSetFieldView = (FieldSetFieldView)this.MemberwiseClone(); // Return Cloned Object return(newFieldSetFieldView); }