// Copyright © 2021 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.
using System.Collections.Generic;
namespace CefSharp.Wpf.Handler
{
///
/// ContextMenuExecuteModel
///
public class ContextMenuExecuteModel
{
///
/// Menu Command
///
public CefMenuCommand MenuCommand { get; private set; }
///
/// Dictioanry Suggestions
///
public IList DictionarySuggestions { get; private set; }
///
/// X Coordinate
///
public int XCoord { get; private set; }
///
/// Y Coordinate
///
public int YCoord { get; private set; }
///
/// Selection Text
///
public string SelectionText { get; private set; }
///
/// Misspelled Word
///
public string MisspelledWord { get; private set; }
///
/// Default constructor
///
/// menu command
/// dictioanry suggestion
/// x coordinate
/// y coordinate
/// selection text
/// misspelled word
public ContextMenuExecuteModel(CefMenuCommand menuCommand, IList dictionarySuggestions, int xCoord, int yCoord, string selectionText, string misspelledWord)
{
MenuCommand = menuCommand;
DictionarySuggestions = dictionarySuggestions;
XCoord = xCoord;
YCoord = yCoord;
SelectionText = selectionText;
MisspelledWord = misspelledWord;
}
}
}