The CGRect struct in C# represents a rectangle, and allows for storing and manipulating its dimensions and position. The method FromLTRB creates a new CGRect instance based on its left, top, right and bottom positions.
For example, using FromLTRB we can create a CGRect representing a square with sides of 10:
CGRect square = CGRect.FromLTRB(0, 0, 10, 10);
We can also use it to create a rectangle that's positioned 20 pixels from the left and top edges, with a width of 50 and a height of 30:
The CGRect struct is part of the System.Drawing package in C#.
C# (CSharp) CGRect.FromLTRB - 19 examples found. These are the top rated real world C# (CSharp) examples of CGRect.FromLTRB extracted from open source projects. You can rate examples to help us improve the quality of examples.