Class
ScopeFlag

Provides the basic functionality for scope flags.

Definition

Namespace:Telerik.Windows.Controls.ScheduleView

Assembly:Telerik.Windows.Controls.ScheduleView.dll

Syntax:

cs-api-definition
public abstract class ScopeFlag : IScopeFlag

Inheritance: objectScopeFlag

Derived Classes: NestedScopeFlagSingleScopeFlag

Implements: IScopeFlag

Constructors

ScopeFlag()

Declaration

cs-api-definition
protected ScopeFlag()

Properties

CloseScopeCallback

Gets or sets the callback which will be executed on scope close.

Declaration

cs-api-definition
public Action CloseScopeCallback { get; set; }

Property Value

Action

IsActive

Gets whether the scope is active.

Declaration

cs-api-definition
public abstract bool IsActive { get; }

Property Value

bool

Implements IScopeFlag.IsActive

ThrowOnError

Gets or sets whether to throw InvalidOperationException on error or not.

Declaration

cs-api-definition
public bool ThrowOnError { get; set; }

Property Value

bool

Methods

BeginScope()

Creates new scope.

Declaration

cs-api-definition
public IDisposable BeginScope()

Returns

IDisposable

Implements IScopeFlag.BeginScope()

Cancel()

Cancels the scope.

Declaration

cs-api-definition
public abstract void Cancel()

Implements IScopeFlag.Cancel()

CloseScope()

When overridden is executed when the scope is removed and before firing the event.

Declaration

cs-api-definition
protected abstract void CloseScope()

End()

Removes the scope.

Declaration

cs-api-definition
public void End()

Implements IScopeFlag.End()

OnScopeClosed(EventArgs)

Executed when the scope is closed. Fires the ScopeClosed and execute the CloseScopeCallback action.

Declaration

cs-api-definition
protected virtual void OnScopeClosed(EventArgs eventArgs)

Parameters

eventArgs

EventArgs

OpenScope()

Opens the scope.

Declaration

cs-api-definition
public abstract void OpenScope()

Implements IScopeFlag.OpenScope()

Events

ScopeClosed

Occurs when the scope is closed.

Declaration

cs-api-definition
public event EventHandler ScopeClosed

Event Value

EventHandler

Implements IScopeFlag.ScopeClosed