Share via


MeasureItemEventArgs 建構函式

定義

初始化 MeasureItemEventArgs 類別的新執行個體。

多載

MeasureItemEventArgs(Graphics, Int32)

初始化 MeasureItemEventArgs 類別的新執行個體。

MeasureItemEventArgs(Graphics, Int32, Int32)

提供項目高度的參數來初始化 MeasureItemEventArgs 類別的新執行個體。

MeasureItemEventArgs(Graphics, Int32)

初始化 MeasureItemEventArgs 類別的新執行個體。

public:
 MeasureItemEventArgs(System::Drawing::Graphics ^ graphics, int index);
public MeasureItemEventArgs (System.Drawing.Graphics graphics, int index);
new System.Windows.Forms.MeasureItemEventArgs : System.Drawing.Graphics * int -> System.Windows.Forms.MeasureItemEventArgs
Public Sub New (graphics As Graphics, index As Integer)

參數

graphics
Graphics

為寫入目的的 Graphics 物件。

index
Int32

您需要高度或寬度的項目索引。

適用於

MeasureItemEventArgs(Graphics, Int32, Int32)

提供項目高度的參數來初始化 MeasureItemEventArgs 類別的新執行個體。

public:
 MeasureItemEventArgs(System::Drawing::Graphics ^ graphics, int index, int itemHeight);
public MeasureItemEventArgs (System.Drawing.Graphics graphics, int index, int itemHeight);
new System.Windows.Forms.MeasureItemEventArgs : System.Drawing.Graphics * int * int -> System.Windows.Forms.MeasureItemEventArgs
Public Sub New (graphics As Graphics, index As Integer, itemHeight As Integer)

參數

graphics
Graphics

為寫入目的的 Graphics 物件。

index
Int32

您需要高度或寬度的項目索引。

itemHeight
Int32

項目的高度,相對於 graphics 物件所測得。

適用於