Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / 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. //------------------------------------------------------------------------ //// 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
- ViewEvent.cs
- ListCardsInFileRequest.cs
- Domain.cs
- CachedPathData.cs
- RootProfilePropertySettingsCollection.cs
- Dictionary.cs
- TrailingSpaceComparer.cs
- PeerService.cs
- PeerResolverMode.cs
- XmlWrappingReader.cs
- AutoResetEvent.cs
- ElementAction.cs
- XmlTextAttribute.cs
- XPathNodeIterator.cs
- PageMediaSize.cs
- ListCollectionView.cs
- PropertyInformationCollection.cs
- ColorConverter.cs
- SqlDependencyUtils.cs
- RectAnimationClockResource.cs
- QuaternionRotation3D.cs
- EntityCommandExecutionException.cs
- FolderNameEditor.cs
- FunctionImportElement.cs
- BamlRecordHelper.cs
- Debugger.cs
- WindowsListViewItemCheckBox.cs
- ImplicitInputBrush.cs
- RightsManagementPermission.cs
- EdgeModeValidation.cs
- ExpressionBindings.cs
- NavigatingCancelEventArgs.cs
- CodeExpressionStatement.cs
- IISMapPath.cs
- DataGridView.cs
- SoapMessage.cs
- IdnElement.cs
- XsltInput.cs
- Config.cs
- MimeImporter.cs
- ReaderWriterLock.cs
- TokenBasedSet.cs
- OverrideMode.cs
- FreezableDefaultValueFactory.cs
- ProfileGroupSettings.cs
- VectorAnimationUsingKeyFrames.cs
- Helpers.cs
- SqlGatherConsumedAliases.cs
- SingleAnimationBase.cs
- TableLayoutRowStyleCollection.cs
- AutomationEventArgs.cs
- FixedSOMImage.cs
- ServicePoint.cs
- OneOfConst.cs
- ReferenceEqualityComparer.cs
- UniqueEventHelper.cs
- DBSqlParserTableCollection.cs
- ModelEditingScope.cs
- TypefaceCollection.cs
- RelatedView.cs
- Screen.cs
- PersonalizationProvider.cs
- BamlRecordWriter.cs
- EventPrivateKey.cs
- XmlDocumentType.cs
- UriPrefixTable.cs
- SoapTypeAttribute.cs
- Selection.cs
- RoutedPropertyChangedEventArgs.cs
- Compiler.cs
- HtmlInputPassword.cs
- TextStore.cs
- PowerStatus.cs
- BindingCompleteEventArgs.cs
- DesignerValidationSummaryAdapter.cs
- SymLanguageVendor.cs
- Inflater.cs
- ExpandoObject.cs
- FlatButtonAppearance.cs
- ListViewContainer.cs
- WebControlsSection.cs
- IntegerFacetDescriptionElement.cs
- WsdlInspector.cs
- PropertyConverter.cs
- SHA256Managed.cs
- ConnectionStringsSection.cs
- ServicePoint.cs
- TraceContextRecord.cs
- WsatAdminException.cs
- dsa.cs
- CombinedGeometry.cs
- tooltip.cs
- OrderedDictionary.cs
- ViewBase.cs
- HttpProfileGroupBase.cs
- BeginEvent.cs
- UserThread.cs
- DocumentReferenceCollection.cs
- DataObject.cs
- BindingsCollection.cs