Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / Stylus / StylusPointPropertyUnit.cs / 1305600 / 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
- XmlAttributeOverrides.cs
- Dump.cs
- OciHandle.cs
- HorizontalAlignConverter.cs
- XmlSchemaSimpleContentRestriction.cs
- SplashScreenNativeMethods.cs
- ExpressionBuilderCollection.cs
- EventRouteFactory.cs
- DateTimeFormat.cs
- OneToOneMappingSerializer.cs
- Attributes.cs
- AQNBuilder.cs
- TemplateBindingExpressionConverter.cs
- MethodCallTranslator.cs
- SqlBooleanMismatchVisitor.cs
- ArrangedElementCollection.cs
- GeneralTransform3D.cs
- BrowserCapabilitiesFactory.cs
- HMACSHA1.cs
- HtmlTableRowCollection.cs
- FormViewCommandEventArgs.cs
- StateMachine.cs
- NameValueFileSectionHandler.cs
- ReachPageContentSerializer.cs
- TextProperties.cs
- AggregatePushdown.cs
- TagMapCollection.cs
- XmlChildEnumerator.cs
- ByteConverter.cs
- MultipartIdentifier.cs
- ConstructorExpr.cs
- HttpMethodAttribute.cs
- CodeArrayCreateExpression.cs
- XPathNodePointer.cs
- RSAOAEPKeyExchangeDeformatter.cs
- CompensationParticipant.cs
- SoundPlayerAction.cs
- Win32Native.cs
- AttributeSetAction.cs
- GridViewUpdateEventArgs.cs
- FileDataSourceCache.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- HttpStaticObjectsCollectionBase.cs
- QilFunction.cs
- HtmlInputButton.cs
- DefaultHttpHandler.cs
- ReferenceSchema.cs
- CodeAttributeDeclarationCollection.cs
- XPathNavigatorKeyComparer.cs
- ActivityValidationServices.cs
- DocumentViewerBaseAutomationPeer.cs
- PaginationProgressEventArgs.cs
- CodeTypeDelegate.cs
- DesignerFrame.cs
- ListBase.cs
- WebPartCollection.cs
- Application.cs
- SafeRightsManagementSessionHandle.cs
- RootBrowserWindow.cs
- WebPageTraceListener.cs
- TypeContext.cs
- _UncName.cs
- AssemblyCacheEntry.cs
- SecurityUtils.cs
- TailPinnedEventArgs.cs
- HTTPNotFoundHandler.cs
- lengthconverter.cs
- UDPClient.cs
- StandardCommands.cs
- CallInfo.cs
- MimeImporter.cs
- Graph.cs
- AlternateViewCollection.cs
- GenericTypeParameterBuilder.cs
- RadioButtonBaseAdapter.cs
- ListViewItem.cs
- WebPartConnectionsEventArgs.cs
- XPathPatternParser.cs
- CustomCredentialPolicy.cs
- WebPartCancelEventArgs.cs
- InfoCardMetadataExchangeClient.cs
- GridViewPageEventArgs.cs
- MenuItemCollection.cs
- XmlBufferReader.cs
- RadioButtonBaseAdapter.cs
- DBConnectionString.cs
- ExpressionBinding.cs
- NamespaceEmitter.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- IConvertible.cs
- ContainerCodeDomSerializer.cs
- FromRequest.cs
- Inflater.cs
- WebPartConnectionCollection.cs
- SQLDecimal.cs
- SchemaImporterExtensionElement.cs
- AdCreatedEventArgs.cs
- RectAnimationBase.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- UpdateTracker.cs