예제 #1
0
 public void Clone(out IEnumFORMATETC newEnum)
 {
     newEnum = new FormatEnumerator(m_formats)
     {
         m_currentIndex = m_currentIndex
     };
 }
예제 #2
0
 public void Clone(out IEnumFORMATETC ppenum)
 {
     Debug.WriteLineIf(CompModSwitches.DataObject.TraceVerbose, "FormatEnumerator: Clone");
     FORMATETC[] temp = new FORMATETC[formats.Count];
     formats.CopyTo(temp, 0);
     ppenum = new FormatEnumerator(parent, temp);
 }
예제 #3
0
파일: DataObject.cs 프로젝트: JianwenSun/cc
 public void Clone(out IEnumFORMATETC ppenum) {
     Debug.WriteLineIf(CompModSwitches.DataObject.TraceVerbose, "FormatEnumerator: Clone");
     FORMATETC[] temp = new FORMATETC[formats.Count];
     formats.CopyTo(temp, 0);
     ppenum = new FormatEnumerator(parent, temp);
 }
 private FormatEnumerator(FormatEnumerator source)
 {
     _parent  = source._parent;
     _current = 0;
     _formats.AddRange(source._formats);
 }
 public void Clone(out IEnumFORMATETC ppenum)
 {
     Debug.WriteLineIf(CompModSwitches.DataObject.TraceVerbose, "FormatEnumerator: Clone");
     ppenum = new FormatEnumerator(this);
 }
예제 #6
0
 public void Clone(out IEnumFORMATETC newEnum)
 {
     newEnum = new FormatEnumerator(m_formats)
     {
         m_currentIndex = m_currentIndex
     };
 }
예제 #7
0
파일: dataobject.cs 프로젝트: JianwenSun/cc
 // IEnumFORMATETC.Clone implementation.
 public void Clone(out IEnumFORMATETC ppenum)
 {
     ppenum = new FormatEnumerator(this);
 }
예제 #8
0
파일: dataobject.cs 프로젝트: JianwenSun/cc
 // Copy constructor.  Used by the Clone method.
 private FormatEnumerator(FormatEnumerator formatEnumerator)
 {
     _formats = formatEnumerator._formats;
     _current = formatEnumerator._current;
 }
예제 #9
0
 public void Clone(out IEnumFORMATETC newEnum)
 {
     newEnum = new FormatEnumerator(_formats, _current);
 }
예제 #10
0
 public void Clone(out IEnumFORMATETC newEnum)
 {
     newEnum = new FormatEnumerator(this);
 }
예제 #11
0
 private FormatEnumerator(FormatEnumerator formatEnumerator)
 {
     _formats = formatEnumerator._formats;
     _current = formatEnumerator._current;
 }