AdvancedAnchor Class

A more advanced type of anchoring that the one used in Anchor.

Definition

Namespace: Firefly.Box.UI
Assembly: Firefly.Box (in Firefly.Box.dll) Version: debug-master-v:33791
C#
public class AdvancedAnchor
Inheritance
Object    AdvancedAnchor

Remarks

The anchoring can be set in relative percentage of the anchoring and not the absolute used in Anchor.

Example

Lets say we have a form width of 100, and a control width of 50. When regular Anchor is set to right, the width of the control will increase matching the width of the form. when the user resizes the form to width 300, the control's width will be 250. When using advanced anchoring I can set the RightPercentage to 25. So when the user resizes the form to width 200, the control's width will be 100 (50 + 200*25%) The AdvancedAnchor matches it's right to left behavior to the Form's RightToLeft property

Constructors

AdvancedAnchor(Int32, Int32, Int32, Int32)Initializes a new instance of the AdvancedAnchor class.
AdvancedAnchor(Int32, Int32, Int32, Int32, Boolean)Initializes a new instance of the AdvancedAnchor class.

Properties

BottomPercentageGets or sets the value determining the AdvancedAnchor's bottom percentage
EnabledGets or sets the value determining the AdvancedAnchor's enabled
LeftPercentageGets or sets the value determining the AdvancedAnchor's left percentage
RightPercentageGets or sets the value determining the AdvancedAnchor's right percentage
TopPercentageGets or sets the value determining the AdvancedAnchor's top percentage

Methods

Clone 
EqualsDetermines whether the specified Object is equal to the current Object.
(Overrides ObjectEquals(Object))
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also