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
- CompoundFileIOPermission.cs
- BaseDataListPage.cs
- MobileControlsSectionHelper.cs
- Confirm.cs
- LineServicesRun.cs
- OneOf.cs
- OperatingSystem.cs
- PipeSecurity.cs
- DbProviderFactoriesConfigurationHandler.cs
- ButtonBaseAdapter.cs
- EventDriven.cs
- XmlObjectSerializerWriteContext.cs
- FormViewInsertEventArgs.cs
- DataGridColumnStyleMappingNameEditor.cs
- PointCollection.cs
- XPathCompileException.cs
- baseaxisquery.cs
- MenuBase.cs
- PolicyLevel.cs
- SHA256Managed.cs
- DoubleLinkList.cs
- RSAPKCS1KeyExchangeFormatter.cs
- Int64Animation.cs
- WarningException.cs
- GridViewRowEventArgs.cs
- GroupItem.cs
- XmlTextAttribute.cs
- Property.cs
- AdapterUtil.cs
- Size3D.cs
- FontNamesConverter.cs
- PrintPreviewControl.cs
- ServiceDescriptionImporter.cs
- ListViewSelectEventArgs.cs
- TreeViewCancelEvent.cs
- smtppermission.cs
- InfoCardTraceRecord.cs
- BamlLocalizabilityResolver.cs
- HttpModulesSection.cs
- PropertyCondition.cs
- MSAAEventDispatcher.cs
- SafeArchiveContext.cs
- BitmapMetadataBlob.cs
- ScrollProviderWrapper.cs
- HostSecurityManager.cs
- Double.cs
- ServiceHttpModule.cs
- AssemblyName.cs
- EpmTargetTree.cs
- RichTextBoxConstants.cs
- CodeGenerationManager.cs
- AnimationStorage.cs
- WebControl.cs
- ObjectDataSourceView.cs
- SynchronizedDisposablePool.cs
- ObjectQueryProvider.cs
- ApplicationTrust.cs
- ActivityDesigner.cs
- EditorPartCollection.cs
- XmlSchemaAttribute.cs
- NameSpaceExtractor.cs
- Link.cs
- DescendentsWalkerBase.cs
- FontWeight.cs
- LoadedOrUnloadedOperation.cs
- _UriSyntax.cs
- DeviceFilterEditorDialog.cs
- AnnotationStore.cs
- MSHTMLHost.cs
- Gdiplus.cs
- ObjectItemAttributeAssemblyLoader.cs
- CodeSnippetExpression.cs
- RuntimeWrappedException.cs
- SiteMapPath.cs
- HttpHandlersSection.cs
- DataGridViewComboBoxEditingControl.cs
- DataBoundControlHelper.cs
- FastPropertyAccessor.cs
- CellIdBoolean.cs
- DataViewSettingCollection.cs
- OutputCache.cs
- DateTimeUtil.cs
- Clock.cs
- EntityWithKeyStrategy.cs
- DoWorkEventArgs.cs
- MouseOverProperty.cs
- DataPagerFieldItem.cs
- SystemResourceKey.cs
- WebPermission.cs
- TransactionsSectionGroup.cs
- SplashScreen.cs
- ReadWriteSpinLock.cs
- MenuItemBindingCollection.cs
- SymbolTable.cs
- ReachUIElementCollectionSerializer.cs
- TableChangeProcessor.cs
- DatePickerAutomationPeer.cs
- securitycriticaldata.cs
- EdmConstants.cs
- ScriptResourceAttribute.cs