// Copyright © 2020 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
namespace CefSharp.DevTools.DOMSnapshot
{
///
/// Table of details of the post layout rendered text positions. The exact layout should not be regarded as
/// stable and may change between versions.
///
[System.Runtime.Serialization.DataContractAttribute]
public class TextBoxSnapshot : CefSharp.DevTools.DevToolsDomainEntityBase
{
///
/// Index of the layout tree node that owns this box collection.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("layoutIndex"), IsRequired = (true))]
public int[] LayoutIndex
{
get;
set;
}
///
/// The absolute position bounding box.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("bounds"), IsRequired = (true))]
public long[] Bounds
{
get;
set;
}
///
/// The starting index in characters, for this post layout textbox substring. Characters that
/// would be represented as a surrogate pair in UTF-16 have length 2.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("start"), IsRequired = (true))]
public int[] Start
{
get;
set;
}
///
/// The number of characters in this post layout textbox substring. Characters that would be
/// represented as a surrogate pair in UTF-16 have length 2.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("length"), IsRequired = (true))]
public int[] Length
{
get;
set;
}
}
}