The ObjectRenderer object is very similar to the ContainerRenderer object in both its methods and properties. The only difference between them is that the ObjectRenderer object is used to render information on a single object and not a container. The data sources accepted by the ObjectRenderer object are AddressEntry, AppointmentItem, Attachment, Folder, MeetingItem, and Message objects. The following section highlights the methods and properties for this object.
The methods on the ObjectRender object are RenderDate, RenderLink, RenderProperty, and RenderTime. Some are exactly the same as the methods used on the ContainerRenderer object. For more information on the ObjectRenderer methods, refer to the ContainerRenderer object. The one method that differs is RenderLink.
The RenderLink method renders an HTML link to the specified object in the DataSource property. The way to render the link is specified in the LinkPattern property. The RenderLink method takes one optional parameter, which is the Response object to render the information to. This is usually the standard ASP Response object.
The ObjectRenderer object properties are a subset of the ContainerRenderer properties. The most important properties for the ObjectRenderer are the DataSource, Formats, and LinkPattern properties. For more information on the Formats and LinkPattern properties, see the descriptions in the section on the ContainerRenderer object.
The DataSource property returns or sets the CDO object from which you want to render specific properties. The CDO object types this property can accept are the AddressEntry, AppointmentItem, Attachment, Folder, MeetingItem, and Message objects.