multidimensional array - C# create 3x3 2d map with labels -
To create 2D "map" with data, create 3 rows with 3 column labels (or similar) Any way? An easy way to manipulate?
Just 9 labels are easy to keep, but I want each label to be accessed with the same array.
What it looks like:
Label 1 label 2 label 3 label 4 label 5 label 6 label_ label 8 label 9
If I label 5 If the asset needs to be changed then I would like to use it something like this:
labelarray [1] [1]. Text = "test"; (Labeled [row] [column]. Property)
How can I do this?
Or can it be achieved in any other way?
class data {private string text; Public string text {{return text; } Set {text = value; }}} Class program {static zero main (string [] args) {data [,] map = new data [3, 3]; Map [1, 1] = new data (); Map [1, 1]. Text = "test"; }}
Editing: Fixed Error
Comments
Post a Comment