See Also

OleObject Class  | OleObject Members  | SizeModes Enumeration

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports Send feedback to Data Dynamics

SizeMode Property

Gets or sets a value that determines how the image is sized to fit the OleObject control area.

[Visual Basic]
Public Property SizeMode As SizeModes
[C#]
public SizeModes SizeMode {get; set;}

Return Type

A SizeModes enumeration value. The default value is SizeModes.Clip.

Example

[C#] 

private void Detail_Format(object sender, System.EventArgs eArgs) 

    this.OleObject1.CreateFrom("C:\\MailAliases.xls"); 
    this.OleObject1.SizeMode = SizeModes.Zoom; 
}

[Visual Basic] 

Private Sub Detail_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail.Format
    Me.OleObject1.CreateFrom("C:\MailAliases.xls")
    Me.OleObject1.SizeMode = SizeModes.Zoom
End Sub

See Also

OleObject Class  | OleObject Members  | SizeModes Enumeration

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.