Table of Contents

Class BorderSettings

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Specifies Border drawing settings.

public class BorderSettings : ImmutableObject, IBaseObject, IDisposableObject, IDisposable, INotifyPropertyChanged
Inheritance
BorderSettings
Implements

Constructors

BorderSettings()

Initializes a new instance of the BorderSettings class.

BorderSettings(BorderSettings)

Initializes a new instance of the BorderSettings class and assign its properties from source.

Fields

Default

Default border settings.

DefaultColor

Gets or sets default border color.

DefaultCommonBorderColor

Default border color.

Temp

Temporary border used for calculations.

Properties

Bottom

Gets settings for the bottom edge of the border.

Color

Gets or sets uniform color of the border lines.

DrawDefaultBorder

Gets or sets whether to draw default border.

IsUniform

Gets whether all sides have same color and width.

IsUniformVerticalColor

Gets whether colors of the left and right edges of the border are equal.

Left

Gets settings for the left edge of the border.

Right

Gets settings for the right edge of the border.

Top

Gets settings for the top edge of the border.

UniformCornerRadius

Gets or sets the uniform corner radius for the Border control.

UniformRadiusIsPercent

Gets or sets whether the uniform corner radius for the Border control is specified in percents.

Width

Gets or sets the border widths.

Methods

Assign(BorderSettings)

Assign properties from another object.

Clone()

Creates clone of the BorderSettings

ColorIsOk(Color?)

Gets whether color is ok for painting the border.

DrawDesignCorners(object?, PaintEventArgs)

Paint event handler implementation which draws design corners used to indicate control's bounds.

GetBottomRectangle(RectD)

Gets rectangle of the bottom border edge.

GetLeftRectangle(RectD)

Gets rectangle of the left border edge.

GetRightRectangle(RectD)

Gets rectangle of the right border edge.

GetTopRectangle(RectD)

Gets rectangle of the top border edge.

GetUniformCornerRadius(RectD)

Gets real uniform corner radius using UniformCornerRadius, UniformRadiusIsPercent and rect.

InvokePaint(Graphics, RectD)

Calls paint event.

SetColors(Color?, Color?, Color?, Color?)

Sets colors of the individual border edges.

SetWidth(Thickness)

Same as Width but implemented as method.

ToColor(Color)

Gets this border with all valid side colors set to the specified value.

ToGrayScale()

Gets this border with all colors set to GrayText

Events

Paint

Occurs when the border is redrawn.