PrintDocument for WinForms
RenderDirect(Unit,Unit,RenderObject,Object,Object) メソッド


C1.PrintDocument.6 アセンブリ > C1.C1Preview 名前空間 > C1PrintDocument クラス > RenderDirect メソッド : RenderDirect(Unit,Unit,RenderObject,Object,Object) メソッド
The horizontal (X) coordinate at which to render the object (cannot be auto).
The vertical (Y) coordinate at which to render the object (cannot be auto).
The RenderObject object to render.
The width of the object (if null, auto is used).
The height of the object (if null, auto is used).
Adds a RenderObject to the C1PrintDocument.Body of the current document at a specific position on the current page, and resolves it.

This method can only be used if C1PrintDocument.IsStartEndDocMode is true.

シンタックス
'宣言
 
Public Overloads Function RenderDirect( _
   ByVal x As Unit, _
   ByVal y As Unit, _
   ByVal ro As RenderObject, _
   ByVal width As System.Object, _
   ByVal height As System.Object _
) As System.Boolean
'使用法
 
Dim instance As C1PrintDocument
Dim x As Unit
Dim y As Unit
Dim ro As RenderObject
Dim width As System.Object
Dim height As System.Object
Dim value As System.Boolean
 
value = instance.RenderDirect(x, y, ro, width, height)
public System.bool RenderDirect( 
   Unit x,
   Unit y,
   RenderObject ro,
   System.object width,
   System.object height
)

パラメータ

x
The horizontal (X) coordinate at which to render the object (cannot be auto).
y
The vertical (Y) coordinate at which to render the object (cannot be auto).
ro
The RenderObject object to render.
width
The width of the object (if null, auto is used).
height
The height of the object (if null, auto is used).

戻り値の型

true if no warnings were generated by this call, false otherwise.
解説
The specified coordinates (x and y) are assigned to the RenderObject.X and RenderObject.Y properties of the passed object.

The specified dimensions (width and height) are assigned to the RenderObject.Width and RenderObject.Height properties of the passed object.

As all other RenderBlock..., RenderDirect... and RenderInline... methods, This method can only be used between calls to C1PrintDocument.StartDoc and C1PrintDocument.EndDoc on the current document, i.e. when the C1PrintDocument.IsStartEndDocMode property is true.

Do not use this method if the document is generated with a call to the C1PrintDocument.Generate method.

参照

C1PrintDocument クラス
C1PrintDocument メンバ
オーバーロード一覧
StartDoc メソッド
EndDoc メソッド
Generate メソッド
Warnings プロパティ