FlexReport for WinForms
FromObject メソッド


C1.Report.4.6.2 アセンブリ > C1.Report 名前空間 > PictureHolder クラス : FromObject メソッド
The value providing data for the new PictureHolder object.
The base path for resolving a relative file name.
Creates a new instance of the PictureHolder from a specified object. Object can be:
シンタックス
'宣言
 
Public Shared Function FromObject( _
   ByVal value As System.Object, _
   ByVal basePath As System.String _
) As PictureHolder
'使用法
 
Dim value As System.Object
Dim basePath As System.String
Dim value As PictureHolder
 
value = PictureHolder.FromObject(value, basePath)
public static PictureHolder FromObject( 
   System.object value,
   System.string basePath
)

パラメータ

value
The value providing data for the new PictureHolder object.
basePath
The base path for resolving a relative file name.

戻り値の型

The new instance of the PictureHolder type.
解説
The following rules are used when the object is a string:

If the string starts with "=" or "[", it is interpretted as an expression, and the actual image will be resolved when the report executes.

String is interpretted as a file name. The file name can be relative or absolute. If it is relative, then the following base paths are tried in order: basePath, DefaultBasePath, System.Environment.CurrentDirectory.

String is interpretted as a URL. The URL can be relative or absolute. If it is relative, then the following base paths are tried in order: basePath, DefaultBasePath and System.Environment.CurrentDirectory.

参照

参照

PictureHolder クラス
PictureHolder メンバ