NBoxElement Class Members
In This Topic
The following tables list the members exposed by NBoxElement.
Public Fields
Public Properties
| Name | Description |
| BackgroundFill | Gets or sets the background. |
| Border | Gets or sets the border. |
| BorderThickness | Gets or sets the thickness of the box border sides. |
| Bounds | Gets the bounds of the box (in parent coordinates). |
| DefaultHeight | Gets the default height of the element. (in parent coordinates) Automatically updated by Nevron. |
| DefaultSize | A shortcut property that gets the default size of the element (DefaultWidth and DefaultHeight). Automatically updated by Nevron. |
| DefaultWidth | Gets the default width of the element (in parent coordinates). Automatically updated by Nevron. |
| DesiredHeight | Gets the desired height of the element. (in parent coordinates) Automatically updated by Nevron. |
| DesiredSize | A shortcut property that gets the desired size of the element (DesiredWidth and DesiredHeight). Automatically updated by Nevron. |
| DesiredWidth | Gets the desired width of the element (in parent coordinates). Automatically updated by Nevron. |
| FocusDecorator | Gets or sets the focus decorator. |
| Font | Gets or sets the font style. |
| Height | Gets the Height of the element (in local coordinates) Automatically updated by Nevron. |
| IsArrangeValid | Gets whether the arrange of the element is valid. |
| IsMeasureValid | Gets whether the measure of the element is valid |
| IsPooledForArrange | Gets whether the element is pooled for arrange validation. |
| IsPooledForMeasure | Gets whether the element is pooled for measure validation. |
| Location | Gets or sets the location of the box (X,Y) coordinates of left-top corner |
| MaxHeight | Gets or sets the max height of the element |
| MaxSize | Gets or sets the max size of the element |
| MaxWidth | Gets or sets the max width of the element |
| MinHeight | Gets or sets the minimal height of the element. The box default and desired height is always greater than or equal to this value, except in the case when the element is collapsed. By default set to 0. |
| MinSize | A shortcut property that gets/sets the minimal size of the element (MinWidth and MinHeight). |
| MinWidth | Gets or sets the minimal width of the element. The box default and desired width is always greater than or equal to this value, except in the case when the element is collapsed. By default set to 0. |
| Padding | Gets or sets the padding applied to the box content. |
| PreferredHeight | Gets or sets the suggested height of the element. If the value of this property is NaN the default height and desired height of the box are automatically computed. Otherwise both the default height and the desired height are equal to this value. By default set to NaN. |
| PreferredSize | A shortcut property that gets/sets the preferred size of the element (PreferredWidth and PreferredHeight). |
| PreferredWidth | Gets or sets the suggested width of the element. If the value of this property is NaN the default width and desired width of the box are automatically computed. Otherwise both the default width and the desired width are equal to this value. By default set to NaN. |
| Size | Gets or set the size of the box (Width, Height) (in local coordinates). Automatically updated by Nevron. |
| TextFill | Gets or sets the text fill. |
| Width | Gets the Width of the box (in local coordinates) Automatically updated by Nevron. |
| X | Gets or sets the X coordinate of the element box left-top corner in respect to the parent coordinate system. |
| Y | Gets or sets the Y coordinate of the element box left-top corner in respect to the parent coordinate system. |
Top
Protected Properties
| Name | Description |
| UvxC | |
Top
Public Methods
| Name | Description |
| CanAnchorHatches | Overridden. Determines whether hatch transformations can be anchored to this node coordinate system. |
| CanAnchorShadows | Overridden. Determines whether shadow transformations can be anchored to this node coordinate system. |
| CanTransform | Overridden. |
| DoPostPaint | Overridden. Performs the element post children paint. |
| DoPrePaint | Overridden. Performs the element pre children paint. |
| GetBorderEdge | Overloaded. Gets the border edge (border area) of the element (in local coordinates) |
| GetBorderThickness | Gets the border thickness of the element. This implementation returns the computed value of the BorderThickness property. |
| GetContentEdge | Overloaded. Gets the content edge (inner edge) of the element (in local coordinates) |
| GetFocusEdge | Gets the edge of the focus frame. This implementation returns the middle between the padding and the content edge |
| GetInsets | Gets the element insets, which is the sum of the margins, padding and border thickness. |
| GetMargins | Gets the margins of the element. This implementation returns empty margins, since by default Box elements do not have margins. |
| GetMeasure | Gets the measure of the element that is applicable for the current value of visitor.DefaultMeasure property. If it is true, returns DefaultSize, otherwise returns DesiredSize. |
| GetPadding | Gets the padding of the element. This implementation returns the computed value of the Padding property. |
| GetPaddingEdge | Overloaded. Gets the padding edge (padding area) of the element (in local coordinates) |
| GetTransform | Overridden. Gets the matrix that transforms local to parent coordinates. |
| InvalidateArrange | Invalidates the element arrange |
| InvalidateArrangeFromChild | Called by child or descendant arrange elements that consider this element as arrange parent, and want to inform it to invalidate it's arrange. |
| InvalidateMeasure | Invalidates the element measure and pools the element for measure validation. |
| InvalidateMeasureFromChild | Called by child or descendant measure elements that consider this element as measure parent, and want to inform it to invalidate it's measure. |
| LocalToParent | Overloaded. Overridden. Transforms a point in local coordinates to the coordinates of its parent coordinate system |
| ParentToLocal | Overloaded. Overridden. Transforms a point in parent coordinates to local coordinates |
| SetBorder | Overloaded. Shortcut method for setting the Border and the BorderThickness properties. |
| TryGetScreenBounds | Tries to get the screen bounds of this element |
| ValidateArrange | Called to arrange the element |
| ValidateMeasure | Called to validate the element measure |
Top
See Also