Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- SchemaMapping.cs
- MissingMemberException.cs
- CacheOutputQuery.cs
- ClientConvert.cs
- RoleManagerModule.cs
- ScrollBar.cs
- AsymmetricSignatureFormatter.cs
- SchemaElementLookUpTableEnumerator.cs
- AccessorTable.cs
- GridProviderWrapper.cs
- PKCS1MaskGenerationMethod.cs
- SizeConverter.cs
- Imaging.cs
- VisualBasicExpressionConverter.cs
- OracleBFile.cs
- AssociationType.cs
- ClientFormsAuthenticationMembershipProvider.cs
- BindingValueChangedEventArgs.cs
- Config.cs
- CellLabel.cs
- UnsafeNativeMethods.cs
- FileClassifier.cs
- RubberbandSelector.cs
- PointCollection.cs
- TcpClientSocketManager.cs
- VersionPair.cs
- DynamicRenderer.cs
- DataRowCollection.cs
- ActiveXHelper.cs
- Parallel.cs
- WebServiceErrorEvent.cs
- TextServicesCompartment.cs
- Html32TextWriter.cs
- UtilityExtension.cs
- KnownBoxes.cs
- CompilerError.cs
- ParserStreamGeometryContext.cs
- HttpWriter.cs
- SecurityTokenResolver.cs
- HttpVersion.cs
- SiteMapSection.cs
- TextParaClient.cs
- VectorCollection.cs
- CalendarDayButton.cs
- CanExpandCollapseAllConverter.cs
- CookieProtection.cs
- FatalException.cs
- ActivityMarkupSerializer.cs
- OracleConnectionString.cs
- validationstate.cs
- Pick.cs
- ProfileInfo.cs
- WindowsTab.cs
- Scalars.cs
- printdlgexmarshaler.cs
- validation.cs
- Trace.cs
- WebPartsSection.cs
- ConnectorMovedEventArgs.cs
- TypeDependencyAttribute.cs
- VisualBrush.cs
- CallbackHandler.cs
- Function.cs
- OperandQuery.cs
- VisualBasic.cs
- LinqDataSourceSelectEventArgs.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- DetailsViewRow.cs
- NavigationFailedEventArgs.cs
- PropertyEmitter.cs
- RecognitionResult.cs
- CacheHelper.cs
- LinqDataSourceDisposeEventArgs.cs
- InvalidPropValue.cs
- ProfileSettingsCollection.cs
- SelectionPattern.cs
- SelectionUIService.cs
- BroadcastEventHelper.cs
- XpsFontSerializationService.cs
- ListViewTableCell.cs
- CollectionViewGroup.cs
- ValidationUtility.cs
- ObjectDataSourceDisposingEventArgs.cs
- WebServiceReceiveDesigner.cs
- ServiceModelSectionGroup.cs
- ImageConverter.cs
- FolderNameEditor.cs
- RealProxy.cs
- Lasso.cs
- VarRemapper.cs
- MD5.cs
- XPathMessageFilterElementCollection.cs
- SizeConverter.cs
- KeyInstance.cs
- AliasedSlot.cs
- figurelength.cs
- ConfigurationFileMap.cs
- WebPartMenuStyle.cs
- TextEvent.cs
- SourceFileBuildProvider.cs