2.2.4.32.7 OriginObject::CopyFormat

Description

Copy object format into Clipboard. Format from clipboard maybe saved to theme file.

Syntax

BOOL CopyFormat( DWORD dwPropertiesFilter = FPB_ALL, DWORD dwObjFilter = FOB_ALL, DWORD dwPropertiesFilterEx = FPBEX_ALL, DWORD dwObjFilterEx = FOB2_ALL, vector<int> * piaErrors = NULL, vector<string> * psaErrors = NULL )

Parameters

dwPropertiesFilter
[input] Filter for properties. See FILTERPROPERTYBITS enumeration in OC_const.h for bits description
dwObjFilter
[input] Filter for objects. See FILTEROBJECTBITS enumeration in OC_const.h for bits description
dwPropertiesFilterEx
dwObjFilterEx
piaErrors
[optional][output] Array of errors. See OTHEMEERROR for possible values. If neither piaErrors nor psaErrors is used errors will be dumped into the script window.
psaErrors
[optional][output] Array of error strings. See E_STR_THEME_ERROR_* for possible strings. If neither piaErrors nor psaErrors is used errors will be dumped into the script window.

Return

Examples

EX1

// Create two scatter plots and modify one. With one plot active, run the example code.
// Activate the second plot, right-click on it and choose Paste Format
void OriginObject_CopyFormat_Ex1()
{
    Page pg = Project.Pages();
    pg.CopyFormat(); // Copy All
}

Remark

See Also

OriginObject::ApplyFormat OriginObject::GetFormat

Header to Include

origin.h