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
TextstringWhat the cells show, tab-separated, a newline between rows, as other spreadsheets paste it.
HtmlstringThe 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
Text
What the cells show, tab-separated, a newline between rows, as other spreadsheets paste it.
public string Text { get; init; }
Property Value
Methods
Deconstruct(out string, out string)
public void Deconstruct(out string Text, out string Html)
Parameters
Equals(CopiedRange?)
public bool Equals(CopiedRange? other)
Parameters
otherCopiedRange
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(CopiedRange?, CopiedRange?)
public static bool operator ==(CopiedRange? left, CopiedRange? right)
Parameters
leftCopiedRangerightCopiedRange
Returns
operator !=(CopiedRange?, CopiedRange?)
public static bool operator !=(CopiedRange? left, CopiedRange? right)
Parameters
leftCopiedRangerightCopiedRange