OLE control properties are the primary means of interacting with OLE controls. Properties, much like OI control properties, describe the persistent attributes of the control, that is, attributes having some meaningful value for the entire life of the control. Like OI control properties, OLE control properties are manipulated using the Get_Property and Set_Property routines. The following properties apply to the SRP Picture Control:
Property | Description | Version Introduced |
---|---|---|
Alignment | The image alignment within the control's bounds. | |
Animated | Whether or not the image is automatically animated. | |
AnimationDelay | The number of milliseconds between frame changes. | |
AutoLoadDropFile | Determines whether or not image files from a drag and drop operation automatically load. | |
BackgroundColor | The control's background color. | |
BorderAlignment | The control's border alignment. | |
Border | The control's border style. | 3.1.0 |
BorderColors | Customizes the colors of an SRP ActiveX Control's border. | 3.1.0 |
BorderType | Deprecated. Use Border instead | Deprecated |
Caption | The text displayed when there is no image or control part. | |
CaptionAlignment | The caption alignment within the control's bounds. | |
CaptionColor | The color used to render the Caption. | |
CaptionOffset | The caption offset within the control's bounds. | |
ControlPart | Sets the control's image to a dynamically sized control part. | |
Font | The font used to render the Caption. | |
Frame | The index of the currently displayed image frame. | |
FrameCount | The number of frames into which the control's image is divided. | |
Image | The path to the image displayed in the control. | |
ImageOffset | The image offset within the control's bounds. | |
ImageSize | The size of the image in pixels. | |
Layout | The sizing behavior of the control's image. | |
OmniProperty | A single property for setting multiple control properties at once. | |
ProgID | The control's ProgId/Class Name. | |
ResizeUsingGDIPlus | Determines if GDIPlus is used to resize image. | |
ScrollPos | The scrollbar positions. | |
TransparentColor | The color not to be drawn in the control's image. | |
Version | The control's version info. | |
Zoom | The zoom level of the picture. |