Class FrameThickness
Represents the thickness for the four sides of a frame.
Inheritance
System.Object
FrameThickness
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace:Neodynamic.SDK.Printing
Assembly:Neodynamic.SDK.ThermalLabel.dll
Syntax
[TypeConverter(typeof (FrameThicknessConverter))]
public class FrameThickness : INotifyPropertyChanged
Constructors
FrameThickness()
Declaration
FrameThickness(Double)
Initializes a new instance of the FrameThickness class with a specified uniform length on each side of the frame.
Declaration
public FrameThickness(double uniformLength)
Parameters
Type |
Name |
Description |
System.Double |
uniformLength |
The uniform length applied to all four sides of the frame.
|
FrameThickness(Double, Double, Double, Double)
Initializes a new instance of the FrameThickness class with the specified length for each side of the frame.
Declaration
public FrameThickness(double left, double top, double right, double bottom)
Parameters
Type |
Name |
Description |
System.Double |
left |
The thickness for the left side of the frame.
|
System.Double |
top |
The thickness for the upper side of the frame.
|
System.Double |
right |
The thickness for the right side of the frame.
|
System.Double |
bottom |
The thickness for the lower side of the frame.
|
Properties
Bottom
Gets or sets the width of the lower side of the frame. Default value is 0 (zero)
Declaration
public double Bottom { get; set; }
Property Value
Type |
Description |
System.Double |
|
Left
Gets or sets the width of the left side of the frame. Default value is 0 (zero)
Declaration
public double Left { get; set; }
Property Value
Type |
Description |
System.Double |
|
Right
Gets or sets the width of the right side of the frame. Default value is 0 (zero)
Declaration
public double Right { get; set; }
Property Value
Type |
Description |
System.Double |
|
Top
Gets or sets the width of the upper side of the frame. Default value is 0 (zero)
Declaration
public double Top { get; set; }
Property Value
Type |
Description |
System.Double |
|
Methods
Equals(FrameThickness)
Declaration
public bool Equals(FrameThickness frameThickness)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
OnPropertyChanged(String)
Declaration
protected void OnPropertyChanged(string propertyName)
Parameters
Type |
Name |
Description |
System.String |
propertyName |
|
ToString()
Converts the FrameThickness object to a string representation, using the current System.Globalization.CultureInfo.
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
The string representation of the FrameThickness object in the current culture.
|
Overrides
System.Object.ToString()
ToString(CultureInfo)
Converts the FrameThickness object to a string representation, using the specified System.Globalization.CultureInfo.
Declaration
public string ToString(CultureInfo culture)
Parameters
Type |
Name |
Description |
System.Globalization.CultureInfo |
culture |
A System.Globalization.CultureInfo that contains the culture to represent the FrameThickness.
|
Returns
Type |
Description |
System.String |
The string representation of the FrameThickness object in the specified culture.
|
Events
PropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
Description |
System.ComponentModel.PropertyChangedEventHandler |
|
Implements
System.ComponentModel.INotifyPropertyChanged.PropertyChanged
Operators
Equality(FrameThickness, FrameThickness)
Declaration
public static bool operator ==(FrameThickness ft1, FrameThickness ft2)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(FrameThickness, FrameThickness)
Declaration
public static bool operator !=(FrameThickness ft1, FrameThickness ft2)
Parameters
Returns
Type |
Description |
System.Boolean |
|