|
//------------------------------------------------------------------------------
// <copyright file="RichTextBoxSelectionTypes.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
namespace System.Windows.Forms {
using System.Diagnostics;
using System;
using System.ComponentModel;
using Microsoft.Win32;
/// <include file='doc\RichTextBoxSelectionTypes.uex' path='docs/doc[@for="RichTextBoxSelectionTypes"]/*' />
/// <devdoc>
/// Defines the possible kinds selection types in a RichTextBox control.
/// The actual vale returned by RichTextBox.getSelType() is a combination
/// of any of the below options.
///
/// </devdoc>
[Flags]
public enum RichTextBoxSelectionTypes {
/// <include file='doc\RichTextBoxSelectionTypes.uex' path='docs/doc[@for="RichTextBoxSelectionTypes.Empty"]/*' />
/// <devdoc>
/// The current selection is empty.
/// </devdoc>
Empty = 0,
/// <include file='doc\RichTextBoxSelectionTypes.uex' path='docs/doc[@for="RichTextBoxSelectionTypes.Text"]/*' />
/// <devdoc>
/// The current selection is text only.
/// </devdoc>
Text = 1,
/// <include file='doc\RichTextBoxSelectionTypes.uex' path='docs/doc[@for="RichTextBoxSelectionTypes.Object"]/*' />
/// <devdoc>
/// The current selection contains atleast one OLE object.
/// </devdoc>
Object = 2,
/// <include file='doc\RichTextBoxSelectionTypes.uex' path='docs/doc[@for="RichTextBoxSelectionTypes.MultiChar"]/*' />
/// <devdoc>
/// The current selection contains more than one character.
/// </devdoc>
MultiChar = 4,
/// <include file='doc\RichTextBoxSelectionTypes.uex' path='docs/doc[@for="RichTextBoxSelectionTypes.MultiObject"]/*' />
/// <devdoc>
/// The current selection contains more than one OLE object.
/// </devdoc>
MultiObject = 8,
}
}
|