Click or drag to resize

BaseAnnotationThrowIfReadOnlyT Method

If EnforceReadyOnlyWithException is true and ReadOnly is true, throw an InvalidOperationException, otherwise return value.

Namespace:  Atalasoft.PdfDoc.Generating.Annotations
Assembly:  Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
protected T ThrowIfReadOnly<T>(
	T value
)

Parameters

value
Type: T
The value

Type Parameters

T
The value type

Return Value

Type: T
Exceptions
ExceptionCondition
InvalidOperationExceptionAttempt to modify a read-only annotation.
Remarks
This is a helper method used in public properties to prevent modification to annotation contents.
See Also