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
- ScrollEventArgs.cs
- _ConnectOverlappedAsyncResult.cs
- AuthenticationSection.cs
- ConfigurationProperty.cs
- WindowShowOrOpenTracker.cs
- Msec.cs
- WebPartAddingEventArgs.cs
- PartitionerQueryOperator.cs
- SystemFonts.cs
- ScriptReferenceBase.cs
- DictionarySectionHandler.cs
- VBCodeProvider.cs
- SafeNativeMethods.cs
- BaseUriWithWildcard.cs
- Matrix.cs
- COM2Properties.cs
- AttributedMetaModel.cs
- ComponentCommands.cs
- MarkupExtensionSerializer.cs
- EntityModelBuildProvider.cs
- GeneralTransform3DGroup.cs
- SoapIgnoreAttribute.cs
- ReferenceTypeElement.cs
- ReflectEventDescriptor.cs
- ImagingCache.cs
- HeaderUtility.cs
- NumericUpDownAcceleration.cs
- EditorResources.cs
- CultureInfoConverter.cs
- HttpCapabilitiesBase.cs
- ExtendedProperty.cs
- CompatibleComparer.cs
- PolyLineSegmentFigureLogic.cs
- Interlocked.cs
- BridgeDataRecord.cs
- SQLBoolean.cs
- WorkerProcess.cs
- DataGridViewCellConverter.cs
- GridView.cs
- LogicalExpr.cs
- HorizontalAlignConverter.cs
- altserialization.cs
- Label.cs
- StringAnimationBase.cs
- DBCSCodePageEncoding.cs
- DrawingCollection.cs
- CfgRule.cs
- TableLayoutPanelCellPosition.cs
- DeploymentSection.cs
- XmlSerializerVersionAttribute.cs
- Formatter.cs
- WindowPattern.cs
- StorageTypeMapping.cs
- CreateUserWizardStep.cs
- FormViewInsertedEventArgs.cs
- ApplicationFileParser.cs
- PolicyAssertionCollection.cs
- CodePrimitiveExpression.cs
- MobileControlsSectionHandler.cs
- LoggedException.cs
- DataServiceResponse.cs
- ServerValidateEventArgs.cs
- BrowserCapabilitiesFactory.cs
- AssemblyAttributes.cs
- PaintEvent.cs
- PathSegmentCollection.cs
- ButtonPopupAdapter.cs
- ObjectStateEntry.cs
- XmlReflectionMember.cs
- XmlSchemaSimpleTypeRestriction.cs
- GPRECTF.cs
- SafeHGlobalHandleCritical.cs
- XmlSchemaAppInfo.cs
- CodeComment.cs
- __Filters.cs
- CopyNodeSetAction.cs
- SmtpClient.cs
- BaseValidator.cs
- XmlHelper.cs
- Splitter.cs
- BrowserCapabilitiesCodeGenerator.cs
- WebPartEditorOkVerb.cs
- WorkflowView.cs
- CaseCqlBlock.cs
- InputDevice.cs
- _ProxyChain.cs
- XmlDataSource.cs
- ResourcePart.cs
- BamlLocalizabilityResolver.cs
- WebBrowserPermission.cs
- EnvelopedPkcs7.cs
- OracleTransaction.cs
- DataGridViewSelectedCellCollection.cs
- WebServicesInteroperability.cs
- MetadataPropertyAttribute.cs
- HttpRequest.cs
- BuilderPropertyEntry.cs
- BezierSegment.cs
- GridView.cs
- DocumentReferenceCollection.cs