예제 #1
0
        // Token: 0x06006B32 RID: 27442 RVA: 0x001EF5AC File Offset: 0x001ED7AC
        internal List <InlineObject> InlineObjectsFromRange(int dcpStart, int dcpLast)
        {
            List <InlineObject> list = null;

            if (this._inlineObjects != null)
            {
                list = new List <InlineObject>(this._inlineObjects.Count);
                for (int i = 0; i < this._inlineObjects.Count; i++)
                {
                    InlineObject inlineObject = this._inlineObjects[i];
                    if (inlineObject.Dcp >= dcpStart && inlineObject.Dcp < dcpLast)
                    {
                        list.Add(inlineObject);
                    }
                    else if (inlineObject.Dcp >= dcpLast)
                    {
                        break;
                    }
                }
            }
            if (list == null || list.Count == 0)
            {
                return(null);
            }
            return(list);
        }
예제 #2
0
        // Token: 0x060067C4 RID: 26564 RVA: 0x001D15FC File Offset: 0x001CF7FC
        internal override void Update(EmbeddedObject newObject)
        {
            InlineObject inlineObject = newObject as InlineObject;

            ErrorHandler.Assert(inlineObject != null, ErrorHandler.EmbeddedObjectTypeMismatch);
            ErrorHandler.Assert(inlineObject._uiElementIsland == this._uiElementIsland, ErrorHandler.EmbeddedObjectOwnerMismatch);
            inlineObject._uiElementIsland = null;
        }
예제 #3
0
        /// <summary>
        /// Update object using date from another embedded object of the same
        /// type.
        /// </summary>
        /// <param name="newObject">
        /// Source of updated data.
        /// </param>
        internal override void Update(EmbeddedObject newObject)
        {
            // These should definitely be the same
            InlineObject newInline = newObject as InlineObject;

            ErrorHandler.Assert(newInline != null, ErrorHandler.EmbeddedObjectTypeMismatch);
            ErrorHandler.Assert(newInline._uiElementIsland == _uiElementIsland, ErrorHandler.EmbeddedObjectOwnerMismatch);

            // We've ensured ownership is still with the old InlineObject, so we now null this out to prevent dispose from disconnecting.
            newInline._uiElementIsland = null;
        }