ComOfficeby KDAN API Reference for Windows and Linux
Table of Contents

Class CopiedRange

Namespace
ComOfficeKit
Assembly
ComOfficeKit.dll

A range as Copy(string, string) copied it, for the host to put on the system clipboard: Text as its text and Html as its HTML.

public sealed record CopiedRange : IEquatable<CopiedRange>
Inheritance
CopiedRange
Implements
Inherited Members

Constructors

CopiedRange(string, string)

A range as Copy(string, string) copied it, for the host to put on the system clipboard: Text as its text and Html as its HTML.

public CopiedRange(string Text, string Html)

Parameters

Text string

What the cells show, tab-separated, a newline between rows, as other spreadsheets paste it.

Html string

The cells as an HTML <table>: each cell's shown text with its fill, font colour, bold, italic and left, centre or right alignment as inline styles. A table element alone; on Windows, the host wraps it in the clipboard's HTML format.

Properties

Html

The cells as an HTML <table>: each cell's shown text with its fill, font colour, bold, italic and left, centre or right alignment as inline styles. A table element alone; on Windows, the host wraps it in the clipboard's HTML format.

public string Html { get; init; }

Property Value

string

Text

What the cells show, tab-separated, a newline between rows, as other spreadsheets paste it.

public string Text { get; init; }

Property Value

string

Methods

Deconstruct(out string, out string)

public void Deconstruct(out string Text, out string Html)

Parameters

Text string
Html string

Equals(CopiedRange?)

public bool Equals(CopiedRange? other)

Parameters

other CopiedRange

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(CopiedRange?, CopiedRange?)

public static bool operator ==(CopiedRange? left, CopiedRange? right)

Parameters

left CopiedRange
right CopiedRange

Returns

bool

operator !=(CopiedRange?, CopiedRange?)

public static bool operator !=(CopiedRange? left, CopiedRange? right)

Parameters

left CopiedRange
right CopiedRange

Returns

bool