OlkSenderPhoto Interface

Definition

A control that displays the sender’s contact picture for items that can be received via e-mail.

public interface class OlkSenderPhoto : Microsoft::Office::Interop::Outlook::_OlkSenderPhoto, Microsoft::Office::Interop::Outlook::OlkSenderPhotoEvents_Event
[System.Runtime.InteropServices.Guid("00067355-0000-0000-C000-000000000046")]
public interface OlkSenderPhoto : Microsoft.Office.Interop.Outlook._OlkSenderPhoto, Microsoft.Office.Interop.Outlook.OlkSenderPhotoEvents_Event
Public Interface OlkSenderPhoto
Implements _OlkSenderPhoto, OlkSenderPhotoEvents_Event
Derived
Attributes
Implements

Remarks

This is a .NET interface derived from a COM coclass that is required by managed code for interoperability with the corresponding COM object. Use this derived interface to access all method, property, and event members of the COM object. However, if a method or event you want to use shares the same name under the same COM object, cast to the corresponding primary interface to call the method, and cast to the latest events interface to connect to the event. Refer to this topic for information about the COM object. For information about the method and property members of the COM object, see _OlkSenderPhoto. For information about the event members of the COM object, see OlkSenderPhotoEvents_Event.

Before you use this control for the first time in the forms designer, add the Microsoft Outlook Sender Photo Control to the control toolbox. You can only add this control to a form region in an Outlook form using the forms designer; you cannot add this control to a Visual Basic UserForm object in the Visual Basic Editor. This control supports Microsoft Windows themes.

If no contact item or contact picture exists for the sender, the control is blank. Right-clicking the control at runtime will display the sender's persona menu, an example of which is shown below.

Double-clicking the control will display the contact item inspector.

For more information about Outlook controls, see Controls in a Custom Form

Properties

Enabled

Returns or sets a Boolean (bool in C#) that indicates if the control is allowed to function. Read/write.

(Inherited from _OlkSenderPhoto)
MouseIcon

Returns or sets a StdPicture that represents the custom picture to the mouse cursor for this control. Read/write.

(Inherited from _OlkSenderPhoto)
MousePointer

Returns or sets an OlMousePointer constant that specifies the type of pointer displayed when the user positions the mouse over the control. Read/write.

(Inherited from _OlkSenderPhoto)
PreferredHeight

Returns an Integer (int in C#) value that specifies the application-preferred height of the sender picture. Read-only.

(Inherited from _OlkSenderPhoto)
PreferredWidth

Returns an Integer (int in C#) value that specifies the application-preferred width of the sender picture. Read-only.

(Inherited from _OlkSenderPhoto)

Events

Change

Occurs when the sender's contact picture has changed.

(Inherited from OlkSenderPhotoEvents_Event)
Click

Occurs when the control is clicked, either through user action or programmatically.

(Inherited from OlkSenderPhotoEvents_Event)
DoubleClick

Occurs when the control is double-clicked through user action.

(Inherited from OlkSenderPhotoEvents_Event)
MouseDown

Occurs when the user presses a mouse button on the control.

(Inherited from OlkSenderPhotoEvents_Event)
MouseMove

Occurs after a mouse movement has been registered over the control.

(Inherited from OlkSenderPhotoEvents_Event)
MouseUp

Occurs after the user releases a mouse button that has been pressed on the control.

(Inherited from OlkSenderPhotoEvents_Event)

Applies to