Table of Contents

Class MeasureItemEventArgs

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Provides data for the measure item events.

public class MeasureItemEventArgs : BaseEventArgs
Inheritance
MeasureItemEventArgs

Constructors

MeasureItemEventArgs(Graphics, int)

Initializes a new instance of the MeasureItemEventArgs class.

MeasureItemEventArgs(Graphics, int, float)

Initializes a new instance of the MeasureItemEventArgs class providing a parameter for the item height.

Properties

Graphics

Gets or sets the Graphics object to measure against.

Index

Gets or sets the index of the item for which the height and width is needed.

ItemHeight

Gets or sets the height of the item specified by the Index.

ItemSize

Gets or sets the size of the item. This is an alias for the ItemWidth and ItemHeight properties.

ItemWidth

Gets or sets the width of the item specified by the Index.

Methods

EnsureCreated(ref MeasureItemEventArgs?, Graphics, int)

Ensures that the specified MeasureItemEventArgs instance is initialized and associated with the given Graphics context and item index.

EnsureCreated(ref MeasureItemEventArgs?, Graphics, int, float)

Ensures that the specified MeasureItemEventArgs instance is initialized with the provided graphics context, item index, and item height.

Reset(Graphics, int)

Assigns the specified graphics context and item index to the current instance for subsequent drawing operations.

Reset(Graphics, int, float)

Assigns the specified graphics context, item index, and item height to the current instance for subsequent drawing operations.