WorkingArea
returns a Rectangle
, which is a struct. Structs are value types, not reference types, therefore you use .
, not ->
.
int main(array<System::String ^> ^args)
{
Debug::WriteLine(Screen::AllScreens[1]->WorkingArea.Location);
// ^
return 0;
}
Output:
{X=0,Y=0}