コード例 #1
0
        /// <summary> Clones this element, not copying the actual data
        /// in the fields, but all other values. </summary>
        /// <returns>Clone of this element</returns>
        public override abstract_Element Clone()
        {
            // Get the new element
            Note_Complex_Element newElement = (Note_Complex_Element)Element_Factory.getElement(Type, Display_SubType);

            newElement.Location     = Location;
            newElement.Language     = Language;
            newElement.Title_Length = Title_Length;
            newElement.Font         = Font;
            newElement.Set_Width(Width);
            newElement.Height = Height;
            newElement.Index  = Index + 1;
            return(newElement);
        }
コード例 #2
0
        /// <summary> Clones this element, not copying the actual data
        /// in the fields, but all other values. </summary>
        /// <returns>Clone of this element</returns>
        public override abstract_Element Clone()
        {
            // Get the new element
            Creator_Simple_Element newElement = (Creator_Simple_Element)Element_Factory.getElement(Type, Display_SubType);

            newElement.Location     = Location;
            newElement.Language     = Language;
            newElement.Title_Length = Title_Length;
            newElement.Lines        = Lines;
            newElement.Height       = Height;
            newElement.Font         = Font;
            newElement.Set_Width(Width);
            newElement.Index = Index + 1;
            newElement.Contributor_Exists = contributor_exists;
            return(newElement);
        }
コード例 #3
0
        /// <summary> Clones this element, not copying the actual data
        /// in the fields, but all other values. </summary>
        /// <returns>Clone of this element</returns>
        public override abstract_Element Clone()
        {
            // Get the new element
            simpleTextBox_Element newElement = (simpleTextBox_Element)Element_Factory.getElement(Type, Display_SubType);

            newElement.Location     = Location;
            newElement.Language     = Language;
            newElement.Title_Length = Title_Length;
            newElement.Lines        = Lines;
            newElement.Height       = Height;
            newElement.Font         = Font;
            newElement.Set_Width(Width);
            newElement.Index = Index + 1;
            newElement.Inner_Set_Height(Font.SizeInPoints);
            return(newElement);
        }
コード例 #4
0
        /// <summary> Clones this element, not copying the actual data
        /// in the fields, but all other values. </summary>
        /// <returns>Clone of this element</returns>
        public override abstract_Element Clone()
        {
            // Get the new element
            Subject_Simple_Element newElement = (Subject_Simple_Element)Element_Factory.getElement(Type, Display_SubType);

            newElement.Location     = Location;
            newElement.Language     = Language;
            newElement.Title_Length = Title_Length;
            newElement.Lines        = Lines;
            newElement.Height       = Height;
            newElement.Font         = Font;
            newElement.Set_Width(Width);
            newElement.Index = Index + 1;
            newElement.Inner_Set_Height(Font.SizeInPoints);
            newElement.Seperate_Dublin_Core_Spatial_Exists = Seperate_Dublin_Core_Spatial_Exists;
            return(newElement);
        }
コード例 #5
0
        /// <summary> Clones this element, not copying the actual data
        /// in the fields, but all other values. </summary>
        /// <returns>Clone of this element</returns>
        public override abstract_Element Clone()
        {
            // Get the new element
            keywordScheme_Element newElement = (keywordScheme_Element)Element_Factory.getElement(Type, Display_SubType);

            newElement.Location     = Location;
            newElement.Language     = Language;
            newElement.Title_Length = Title_Length;
            newElement.Height       = Height;
            newElement.Font         = Font;
            newElement.Set_Width(Width);
            newElement.Index = Index + 1;

            // Copy the combo box specific values
            foreach (string thisItem in thisSchemeBox.Items)
            {
                newElement.Add_Scheme(thisItem);
            }

            return(newElement);
        }