Inset Structure

An inset that can be applied to a Rect. Conceptually quite similar to a Rect but it is a bit confusing to use the same thing

 

Namespace:  WebSupergoo.WordGlue4
Assembly:  WordGlue4 (in WordGlue4.dll) Version: 4.1.0.0 (4.1.0.0)
Syntax
public struct Inset : IComparable<Inset>

The Inset type exposes the following members.

Constructors
  Name Description
Public method Inset(Double)
Construct an Inset given one value to be applied to each of the components.
Public method Inset(Double, Double, Double, Double)
Construct an Inset given four values.
Top
Properties
  Name Description
Public property Bottom
The amount of inset for the bottom.
Public property IsEmpty
Whether the inset has all zero values
Public property Left
The amount of inset for the left.
Public property Right
The amount of inset for the right.
Public property Top
The amount of inset for the top.
Top
Methods
  Name Description
Public method CompareTo
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object
Public method Equals
Compare for equality.
(Overrides ValueTypeEquals(Object).)
Public method GetHashCode
Obtain a hash code for the Inset.
(Overrides ValueTypeGetHashCode.)
Public methodStatic member Map
Generate an Inset which will map one Rect to another.
Public methodStatic member Max
Combine two Insets to produce the maximum Inset. The maximum is the maximum value of each component to produce the greatest possible inset or least possible outset.
Public methodStatic member Min
Combine two Insets to produce the minimum Inset. The minimum is the minimum value of each component to produce the least possible inset or greatest possible outset.
Public method ToString
Convert the Inset to a human readable string such as \'X=10; Y=20; W=100; H=200\'.
(Overrides ValueTypeToString.)
Public method ToString(IFormatProvider)
Convert the Inset to a human readable string such as \'X=10; Y=20; W=100; H=200\'.
Top
Operators
  Name Description
Public operatorStatic member Addition(Inset, Inset)
Combine two Insets by adding the values in one to the other.
Public operatorStatic member Addition(Rect, Inset)
Combine a Rect with an Inset to produce a rect which has been inset.
Public operatorStatic member Addition(Size, Inset)
Combine a Size with an Inset to produce a rect which has been inset.
Public operatorStatic member Equality
Compare two Insets for equality.
Public operatorStatic member Inequality
Compare two Insets for inequality.
Public operatorStatic member Subtraction
Combine two Insets by subtracting the values in one from the other.
Public operatorStatic member UnaryNegation
Negate the inset - so an inset becomes an outset and vice versa.
Top
See Also