/// <summary> /// Duplicates a named color list. /// </summary> /// <returns>A new <see cref="NamedColorList"/> instance.</returns> /// <exception cref="LcmsNETException"> /// Failed to create instance. /// </exception> /// <exception cref="ObjectDisposedException"> /// The named color list has already been disposed. /// </exception> public NamedColorList Duplicate() { EnsureNotClosed(); return(new NamedColorList(Interop.DupNamedColorList(handle), Context)); }