ערוך

שתף באמצעות


LegendItemsCollection.Insert Method

Definition

Inserts a custom LegendItem object into the collection at the given location.

Overloads

Insert(Int32, Color, String)

Inserts a LegendItem object with the specified text and symbol color into the collection at the specified location.

Insert(Int32, String, String)

Inserts a LegendItem object with the specified text and symbol image into the collection at the specified location.

Insert(Int32, Color, String)

Inserts a LegendItem object with the specified text and symbol color into the collection at the specified location.

public:
 void Insert(int index, System::Drawing::Color color, System::String ^ text);
public void Insert (int index, System.Drawing.Color color, string text);
override this.Insert : int * System.Drawing.Color * string -> unit
Public Sub Insert (index As Integer, color As Color, text As String)

Parameters

index
Int32

The location in the zero-based index where the LegendItem object is to be inserted.

color
Color

The symbol color of the legend item.

text
String

The legend item text.

Remarks

Inserts a custom legend item into the collection at the specified location using the specified text and symbol color.

To insert a legend item that uses an image for its symbol, use the Insert method.

Use the Add method to append a LegendItem object that uses a color for its symbol to the end if the collection.

Applies to

Insert(Int32, String, String)

Inserts a LegendItem object with the specified text and symbol image into the collection at the specified location.

public:
 void Insert(int index, System::String ^ image, System::String ^ text);
public void Insert (int index, string image, string text);
override this.Insert : int * string * string -> unit
Public Sub Insert (index As Integer, image As String, text As String)

Parameters

index
Int32

The location in the zero-based index where the LegendItem object is to be inserted.

image
String

The absolute or relative URL of the image file to be used for the legend item symbol.

text
String

The legend item text.

Remarks

Inserts a custom legend item into the collection at the specified location using the specified text and image for the symbol.

To insert a legend item that uses a color for its symbol, use the Insert method.

Use the Add method to append a LegendItem object with a symbol image to the end if the collection.

Applies to