// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++

// NOTE: Do not modify the contents of this file.  If this class is regenerated by
//  Microsoft Visual C++, your modifications will be overwritten.


#include "stdafx.h"
#include "conditionalformats.h"

// Dispatch interfaces referenced by this interface
#include "ConditionalFormat.h"


/////////////////////////////////////////////////////////////////////////////
// CConditionalFormats properties

/////////////////////////////////////////////////////////////////////////////
// CConditionalFormats operations

CConditionalFormat CConditionalFormats::GetItem(const VARIANT& Key)
{
	LPDISPATCH pDispatch;
	static BYTE parms[] =
		VTS_VARIANT;
	InvokeHelper(0x0, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, parms,
		&Key);
	return CConditionalFormat(pDispatch);
}

long CConditionalFormats::GetCount()
{
	long result;
	InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
	return result;
}

CConditionalFormat CConditionalFormats::Add(LPCTSTR Expression, const VARIANT& Key)
{
	LPDISPATCH pDispatch;
	static BYTE parms[] =
		VTS_BSTR VTS_VARIANT;
	InvokeHelper(0x2, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, parms,
		Expression, &Key);
	return CConditionalFormat(pDispatch);
}

void CConditionalFormats::Remove(const VARIANT& Key)
{
	static BYTE parms[] =
		VTS_VARIANT;
	InvokeHelper(0x3, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
		 &Key);
}

void CConditionalFormats::Clear()
{
	InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
