コード例 #1
0
        /// <summary>
        /// Exports the media to a destination <see cref="Presentation"/>
        /// </summary>
        /// <param name="destPres">The destination presentation</param>
        /// <returns>The exported media</returns>
        protected override Media ExportProtected(Presentation destPres)
        {
            ExternalTextMedia cpETM = (ExternalTextMedia)base.ExportProtected(destPres);

            cpETM.Src = Src;
            return(cpETM);
        }
コード例 #2
0
        ///<summary>
        ///
        ///</summary>
        ///<returns></returns>
        protected override Media CopyProtected()
        {
            ExternalTextMedia copy = (ExternalTextMedia)base.CopyProtected();

            copy.Src = Src;
            return(copy);
        }
コード例 #3
0
        public override bool ValueEquals(WithPresentation other)
        {
            if (!base.ValueEquals(other))
            {
                return(false);
            }

            ExternalTextMedia otherz = other as ExternalTextMedia;

            if (otherz == null)
            {
                return(false);
            }

            if (Src != otherz.Src)
            {
                return(false);
            }

            return(true);
        }