2.2.4.46.64 Worksheet::SetAsHolderSheet


Version

Minimum Origin Version Required: Origin 2016 SR0

Description

Sets whether worksheet as holder sheet.

Syntax

BOOL SetAsHolderSheet( BOOL bSet = TRUE )

Parameters

bSet
[input] true to set worksheet as holder sheet

Return

Returns TRUE on successful exit and FALSE on error.

Examples

EX1

void SetAsHolderSheet_ex1()
{
    //assum wks has inserted graph in first cell
    Worksheet wks = Project.ActiveLayer();
    if( wks && wks.HasEmbedding() )
        wks.SetAsHolderSheet();
}

Remark

See Also

Worksheet::IsHolderSheet

Header to Included

origin.h