コード例 #1
0
ファイル: CosObject.cs プロジェクト: AnilAwadh/Pdf
        /**
         * This will get the dictionary object in this object that has the name key.
         *
         * @param key The key to the value that we are searching for.
         *
         * @return The pdf object that matches the key.
         */
        public CosBase GetItem(CosName key)
        {
            CosBase retval = null;

            if (baseObject is CosDictionary)
            {
                retval = ((CosDictionary)baseObject).getItem(key);
            }
            return(retval);
        }
コード例 #2
0
ファイル: CosObject.cs プロジェクト: AnilAwadh/Pdf
 /**
  * This will set the object that this object encapsulates.
  *
  * @param object The new object to encapsulate.
  */
 public void SetObject(CosBase obj)
 {
     baseObject = obj;
 }
コード例 #3
0
ファイル: CosObject.cs プロジェクト: AnilAwadh/Pdf
 /**
  * Constructor.
  *
  * @param object The object that this encapsulates.
  *
  */
 public CosObject(CosBase obj)
 {
     SetObject(obj);
 }