Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Struct

OfficeBorderSide

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 with working tree changes
Base
ValueType
Implements
IEquatable<OfficeBorderSide>
Modifiers
sealed

Describes one visible edge of a rectangular border box.

Inheritance

  • ValueType
  • OfficeBorderSide

Usage

Explore 18 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 12

Constructors

public OfficeBorderSide(OfficeColor color, double width, OfficeStrokeDashStyle dashStyle = Solid, OfficeBorderLineKind lineKind = Single, double doubleLineSeparation = 0) #

Creates a border side.

Parameters

color OfficeIMO.OfficeColor required
width double required
dashStyle OfficeIMO.Drawing.OfficeStrokeDashStyle = Solid optional
lineKind OfficeIMO.Drawing.OfficeBorderLineKind = Single optional
doubleLineSeparation double = 0 optional

Methods

Equals 2 overloads
public bool Equals(OfficeBorderSide other) #

Indicates whether the current object is equal to another object of the same type.

Parameters

other OfficeIMO.Drawing.OfficeBorderSide required
An object to compare with this object.

Returns

bool true if the current object is equal to the other parameter; otherwise, false.
public override bool Equals(object? obj) #

Indicates whether this instance and a specified object are equal.

Parameters

obj object? required
The object to compare with the current instance.

Returns

bool true if obj and this instance are the same type and represent the same value; otherwise, false.
public override int GetHashCode() #

Returns the hash code for this instance.

Returns

int A 32-bit signed integer that is the hash code for this instance.
public static bool op_Equality(OfficeBorderSide left, OfficeBorderSide right) #

Compares two border sides for equality.

Parameters

left OfficeIMO.Drawing.OfficeBorderSide required
right OfficeIMO.Drawing.OfficeBorderSide required

Returns

bool
public static bool op_Inequality(OfficeBorderSide left, OfficeBorderSide right) #

Compares two border sides for inequality.

Parameters

left OfficeIMO.Drawing.OfficeBorderSide required
right OfficeIMO.Drawing.OfficeBorderSide required

Returns

bool

Properties

public OfficeColor Color { get; } #

Border color.

public double Width { get; } #

Border width in the caller's layout unit.

public OfficeStrokeDashStyle DashStyle { get; } #

Border dash style.

public OfficeBorderLineKind LineKind { get; } #

Border line composition.

public double DoubleLineSeparation { get; } #

Distance between the two stroke centers when OfficeBorderSide.LineKind is OfficeBorderLineKind.Double.

public bool IsVisible { get; } #

Whether this side should be drawn.