Gravity Type
GravityType
specifies positioning of an object (e.g. text, image) within a bounding region (e.g. an image). Gravity provides a convenient way to locate objects irrespective of the size of the bounding region, in other words, you don't need to provide absolute coordinates in order to position an object. A common default for gravity is NorthWestGravity.
Entries
Link copied to clipboard
Content copied to clipboard
Position object at bottom-right of region
Link copied to clipboard
Content copied to clipboard
Position object at bottom-center of region
Link copied to clipboard
Content copied to clipboard
Position object at left-bottom of region
Link copied to clipboard
Content copied to clipboard
Position object at right-center of region
Link copied to clipboard
Content copied to clipboard
Position object at center of region
Link copied to clipboard
Content copied to clipboard
Position object at left-center of region
Link copied to clipboard
Content copied to clipboard
Position object at top-right of region
Link copied to clipboard
Content copied to clipboard
Postiion object at top-center of region
Link copied to clipboard
Content copied to clipboard
Position object at top-left of region.
Link copied to clipboard
Content copied to clipboard
Don't use gravity.
Link copied to clipboard
Content copied to clipboard
Don't use gravity.