다음을 통해 공유


LegendCellCollection.Add(LegendCellType, String, ContentAlignment) 메서드

정의

컬렉션의 끝에 지정된 셀 형식, 텍스트 및 맞춤을 사용하여 범례 셀을 추가합니다.

public:
 int Add(System::Windows::Forms::DataVisualization::Charting::LegendCellType cellType, System::String ^ text, System::Drawing::ContentAlignment alignment);
public int Add (System.Windows.Forms.DataVisualization.Charting.LegendCellType cellType, string text, System.Drawing.ContentAlignment alignment);
override this.Add : System.Windows.Forms.DataVisualization.Charting.LegendCellType * string * System.Drawing.ContentAlignment -> int
Public Function Add (cellType As LegendCellType, text As String, alignment As ContentAlignment) As Integer

매개 변수

cellType
LegendCellType

셀 형식을 나타내는 LegendCellType 값입니다.

text
String

cellType 매개 변수의 값에 따라 셀 텍스트 또는 해당 이미지 이름 중 하나를 나타내는 string 값입니다.

alignment
ContentAlignment

셀 내용 맞춤을 나타내는 ContentAlignment 값입니다.

반환

Int32

컬렉션에 새로 추가된 범례 셀의 인덱스를 나타내는 integer 값입니다. 인덱스는 0부터 시작합니다.

적용 대상