Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Input / Stylus / StylusPointPropertyUnit.cs / 1 / StylusPointPropertyUnit.cs
//------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------
using System;
using System.Windows;
using System.Windows.Input;
using System.Windows.Media;
using System.Collections.Generic;
namespace System.Windows.Input
{
///
/// Stylus data is made up of n number of properties. Each property can contain one or more
/// values such as x or y coordinate or button states.
/// This enum defines the various possible units for the values in the stylus data
///
///
public enum StylusPointPropertyUnit
{
/// Specifies that the units are unknown.
///
None = 0,
/// Specifies that the property value is in inches (distance units).
///
Inches = 1,
/// Specifies that the property value is in centimeters (distance units).
///
Centimeters = 2,
/// Specifies that the property value is in degrees (angle units).
///
Degrees = 3,
/// Specifies that the property value is in radians (angle units).
///
Radians = 4,
/// Specifies that the property value is in seconds (angle units).
///
Seconds = 5,
///
/// Specifies that the property value is in pounds (force, or mass, units).
Pounds = 6,
///
/// Specifies that the property value is in grams (force, or mass, units).
Grams = 7
}
///
/// Used to validate the enum
///
internal static class StylusPointPropertyUnitHelper
{
internal static bool IsDefined(StylusPointPropertyUnit unit)
{
if (unit >= StylusPointPropertyUnit.None && unit <= StylusPointPropertyUnit.Grams)
{
return true;
}
return false;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Tuple.cs
- InkSerializer.cs
- ScrollViewer.cs
- XmlQueryRuntime.cs
- CopyCodeAction.cs
- ImpersonationContext.cs
- FunctionCommandText.cs
- Itemizer.cs
- ResXBuildProvider.cs
- DBConnection.cs
- TreeWalker.cs
- ScrollChangedEventArgs.cs
- BrowserCapabilitiesCodeGenerator.cs
- ServiceDocument.cs
- DetailsViewPagerRow.cs
- MsmqHostedTransportManager.cs
- MarshalDirectiveException.cs
- PageParserFilter.cs
- log.cs
- MsmqElementBase.cs
- WorkflowOwnershipException.cs
- SystemMulticastIPAddressInformation.cs
- SafePointer.cs
- mediaeventshelper.cs
- LiteralTextParser.cs
- ChtmlCommandAdapter.cs
- TableRowCollection.cs
- KnownBoxes.cs
- IIS7UserPrincipal.cs
- util.cs
- RSAOAEPKeyExchangeFormatter.cs
- GridViewColumnHeader.cs
- ListViewCancelEventArgs.cs
- GestureRecognizer.cs
- AttributeEmitter.cs
- PropertyConverter.cs
- ListViewItem.cs
- WSSecureConversationFeb2005.cs
- SessionEndingEventArgs.cs
- DataRecordInternal.cs
- NumericPagerField.cs
- HtmlEmptyTagControlBuilder.cs
- XmlSchemaSimpleTypeRestriction.cs
- FormViewModeEventArgs.cs
- ChooseAction.cs
- ThemeableAttribute.cs
- DataGridViewCheckBoxColumn.cs
- WebPartCollection.cs
- GeneralTransform2DTo3DTo2D.cs
- ImportContext.cs
- WebServiceParameterData.cs
- RemotingConfigParser.cs
- LineMetrics.cs
- TemplateXamlParser.cs
- ThicknessAnimationBase.cs
- ToolStripDropDownButton.cs
- BooleanAnimationUsingKeyFrames.cs
- AssemblyInfo.cs
- XmlILStorageConverter.cs
- Parameter.cs
- BindingList.cs
- RequiredFieldValidator.cs
- Menu.cs
- AssemblyBuilder.cs
- SqlReorderer.cs
- EntityDescriptor.cs
- RequestDescription.cs
- RegexInterpreter.cs
- ChangeBlockUndoRecord.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- SkipStoryboardToFill.cs
- RenderTargetBitmap.cs
- TreeView.cs
- Rectangle.cs
- WeakReferenceEnumerator.cs
- InputScope.cs
- GifBitmapDecoder.cs
- ObjectDataSourceMethodEventArgs.cs
- EditorZone.cs
- XmlQueryTypeFactory.cs
- ObjectSpanRewriter.cs
- AttributeData.cs
- ImageMapEventArgs.cs
- MessageLogger.cs
- PropertyItem.cs
- GeneralTransform.cs
- DigestTraceRecordHelper.cs
- AvTrace.cs
- DbException.cs
- SByteStorage.cs
- DataDocumentXPathNavigator.cs
- EntityDataSourceDataSelectionPanel.cs
- SqlTriggerAttribute.cs
- SerializationObjectManager.cs
- CompoundFileDeflateTransform.cs
- TdsParserStateObject.cs
- HttpCookieCollection.cs
- codemethodreferenceexpression.cs
- DataGridViewComboBoxEditingControl.cs
- AutoFocusStyle.xaml.cs