English | 日本語
Home > Merge > Merge for Windows > Documentation Contents > Merge.Application Object

Merge.Application Object

This object forms the root of the Merge object model. It is the only object that can be created by automation clients. The methods and properties exposed by this object can be used to alter the appearance of the Merge application window, and to create instances of other objects within the object model.

Visual Basic example

Dim mergeApp As Merge70.Application
Set mergeApp = New Merge70.Application
...

Properties (implemented by interface ICommonUI)

Active

IDL [propget] HRESULT Active([out, retval] VARIANT_BOOL* pValue)
[propput] HRESULT Active([in] VARIANT_BOOL newValue)
.NET Boolean Active[get, set]
VB6 Active As Boolean

The active state of the Merge application window.

The property is read/write.

Height

IDL [propget] HRESULT Height([out, retval] long* pValue)
[propput] HRESULT Height([in] long newValue)
.NET Int32 Height[get, set]
VB6 Height As Long

The height of the Merge application window in pixels.

The property is read/write.

Left

IDL [propget] HRESULT Left([out, retval] long* pValue)
[propput] HRESULT Left([in] long newValue)
.NET Int32 Left[get, set]
VB6 Left As Long

The location of the left edge pixel coordinate of the Merge application window.

The property is read/write.

Maximized

IDL [propget] HRESULT Maximized([out, retval] VARIANT_BOOL* pValue)
[propput] HRESULT Maximized([in] VARIANT_BOOL newValue)
.NET Boolean Maximized[get, set]
VB6 Maximized As Boolean

Indicates whether the Merge application window is maximized.

The property is read/write.

Minimized

IDL [propget] HRESULT Minimized([out, retval] VARIANT_BOOL* pValue)
[propput] HRESULT Minimized([in] VARIANT_BOOL newValue)
.NET Boolean Minimized[get, set]
VB6 Minimized As Boolean

Indicates whether the Merge application window is minimized.

The property is read/write.

Top

IDL [propget] HRESULT Top([out, retval] long* pValue)
[propput] HRESULT Top([in] long newValue)
.NET Int32 Top[get, set]
VB6 Top As Long

The location of the top edge pixel coordinate of the Merge application window.

The property is read/write.

Visible

IDL [propget] HRESULT Visible([out, retval] VARIANT_BOOL* pValue)
[propput] HRESULT Visible([in] VARIANT_BOOL newValue)
.NET Boolean Visible[get, set]
VB6 Visible As Boolean

Indicates whether the Merge application window is visible.

The property is read/write.

Width

IDL [propget] HRESULT Width([out, retval] long* pValue)
[propput] HRESULT Width([in] long newValue)
.NET Int32 Width[get, set]
VB6 Width As Long

The width of the Merge application window in pixels.

The property is read/write.

Properties (implemented by interface IApplication)

BinaryComparison

IDL [propget] HRESULT BinaryComparison([out, retval] IBinaryComparison** pValue)
.NET BinaryComparison BinaryComparison[get]
VB6 BinaryComparison As BinaryComparison

Creates and returns a reference to a new BinaryComparison object.

The property is read-only.

FolderComparison

IDL [propget] HRESULT FolderComparison([out, retval] IFolderComparison** pValue)
.NET FolderComparison FolderComparison[get]
VB6 FolderComparison As FolderComparison

Creates and returns a reference to a new FolderComparison object.

The property is read-only.

ImageComparison

IDL [propget] HRESULT ImageComparison([out, retval] IImageComparison** pValue)
.NET ImageComparison ImageComparison[get]
VB6 ImageComparison As ImageComparison

Creates and returns a reference to a new ImageComparison object.

The property is read-only.

Preferences

IDL [propget] HRESULT Preferences([out, retval] IPreferences** pValue)
.NET Preferences Preferences[get]
VB6 Preferences As Preferences

Provides access to Merge preferences.

The property is read-only.

TextComparison

IDL [propget] HRESULT TextComparison([out, retval] ITextComparison** pValue)
.NET TextComparison TextComparison[get]
VB6 TextComparison As TextComparison

Creates and returns a reference to a new TextComparison object.

The property is read-only.

Version

IDL [propget] HRESULT Version([out, retval] BSTR* pValue)
.NET String Version[get]
VB6 Version As String

The version of Merge being automated. The string is of the format "<majorVersion>.<minorVersion>.<buildNumber>" (e.g., "7.0.1234").

The property is read-only.

Methods (implemented by interface ICommonUI)

Close

IDL HRESULT Close()
.NET void Close()
VB6 Close

Closes the Merge application window.

GiveUserControl

IDL HRESULT GiveUserControl()
.NET void GiveUserControl()
VB6 GiveUserControl

Gives control over the lifetime of the Merge application to the user. Merge will not automatically close when outstanding automation references are released.

Restore

IDL HRESULT Restore()
.NET void Restore()
VB6 Restore

Restores the Merge application window from minimized or maximised state to its normal resizable state.

Methods (implemented by interface IApplication)

CompareItems

IDL HRESULT CompareItems([in] VARIANT firstItem, [in] VARIANT secondItem, [in, optional] VARIANT thirdItem, [out, retval] IComparison** pValue)
.NET IComparison CompareItems(Object firstItem, Object secondItem, Object thirdItem)
VB6 CompareItems(firstItem As Variant, secondItem As Variant [, thirdItem As Variant]) As IComparison

Compares two or three files or folders using the most appropriate type of comparison window. Returns an object representing a file or folder comparison.

Arguments

OpenComparison

IDL HRESULT OpenComparison([in] BSTR filename)
.NET void OpenComparison(String filename)
VB6 OpenComparison(filename As String)

Opens a previously saved .cmp7 or .Comparison7 file, containing a saved file or folder comparison.

Arguments


Related topics