Example #1
0
        private HeaderCell ParseHeaderCell(RevisionManifestDataElementData headerCellRevisionManifest)
        {
            ExGuid      rootObjectId = headerCellRevisionManifest.RevisionManifestObjectGroupReferencesList[0].ObjectGroupExtendedGUID;
            DataElement element      = this.objectGroupDataElements
                                       .Where(d => d.DataElementExtendedGUID.Equals(rootObjectId)).SingleOrDefault();

            return(HeaderCell.CreateInstance((ObjectGroupDataElementData)element.Data));
        }
        /// <summary>
        /// Create the instacne of Header Cell.
        /// </summary>
        /// <param name="objectElement">The instance of ObjectGroupDataElementData.</param>
        /// <returns>Returns the instacne of HeaderCell.</returns>
        public static HeaderCell CreateInstance(ObjectGroupDataElementData objectElement)
        {
            HeaderCell instance = new HeaderCell();

            instance.ObjectDeclaration = objectElement.ObjectGroupDeclarations.ObjectDeclarationList[0];
            ObjectGroupObjectData objectData = objectElement.ObjectGroupData.ObjectGroupObjectDataList[0];

            instance.ObjectData = new ObjectSpaceObjectPropSet();
            instance.ObjectData.DoDeserializeFromByteArray(objectData.Data.Content.ToArray(), 0);

            return(instance);
        }