help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Classes' (#rtl)

TWriteMethodPropertyEvent

Callback for the TWriter.OnWriteMethodProperty event.

Declaration

Source position: classesh.inc line 1095

type TWriteMethodPropertyEvent = procedure(

  Writer: TWriter;

  Instance: TPersistent;

  PropInfo: PPropInfo;

  const MethodValue: TMethod;

  const DefMethodValue: TMethod;

  var Handled: Boolean

) of object;

Description

TWriteMethodPropertyEvent is the prototype for the TWriter.OnWriteMethodProperty event. Writer is the sender of the event, Instance is the instance that is being streamed. PropInfo is a pointer to the RTTI information for the property being written, and MethodValue is the value of the method that the property was set to. DefMethodCodeValue is set to the default value of the property (Nil or the parent value). Handled should be set to True if the handler set the property succesfully.

See also

TWriter.OnWriteMethodProperty

  

Handler from writing method properties.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505