Click or drag to resize

PropertyRepairOptionsPropertyValueReplacer Delegate

The PropertyValueReplacer is called when a property repair is being made. If the delegate wishes to replace the recommended value for a property.

Namespace:  Atalasoft.PdfDoc.Repair
Assembly:  Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public delegate bool PropertyValueReplacer(
	PropertyInfo property,
	string propertyName,
	Object propertyOwner,
	Object defaultValue,
	Object fileParsedValue,
	Object fileSuppliedValue,
	ref Object replacementValue
)

Parameters

property
Type: System.ReflectionPropertyInfo
The property that is being repaired. May be null.
propertyName
Type: SystemString
The name of the property, or if property is null, the name of the "extra" entry.
propertyOwner
Type: SystemObject
The object that owns the property.
defaultValue
Type: SystemObject
The default value for the property.
fileParsedValue
Type: SystemObject
The value parsed from the file for the property (may be null).
fileSuppliedValue
Type: SystemObject
The converted value for the property (may be null).
replacementValue
Type: SystemObject
The value to be used as a replacement.

Return Value

Type: Boolean
true if the value should be replaced with replacementValue, false otherwise
Remarks
the replacementValue must be assignable to the property type. If the type is not appropriate, DotPdf will throw a PdfException.
See Also