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.0.0.0.0.297 (.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

[Missing <returns> documentation for "M:Atalasoft.PdfDoc.Generating.Annotations.BaseAnnotation.ThrowIfReadOnly``1(``0)"]

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