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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SQLInt16.cs
- ContentFilePart.cs
- ViewStateException.cs
- ParameterToken.cs
- WebContext.cs
- SystemFonts.cs
- DateTimeFormat.cs
- ScrollPatternIdentifiers.cs
- DocumentPaginator.cs
- PanelContainerDesigner.cs
- remotingproxy.cs
- ZeroOpNode.cs
- MatrixTransform.cs
- UnsafeNativeMethods.cs
- XmlSchemaObjectTable.cs
- Object.cs
- SortedList.cs
- BitmapSourceSafeMILHandle.cs
- SqlUserDefinedTypeAttribute.cs
- ImageBrush.cs
- SignatureToken.cs
- MouseBinding.cs
- MediaTimeline.cs
- Mappings.cs
- ListView.cs
- ProxyHelper.cs
- IsolatedStorageSecurityState.cs
- DbConnectionInternal.cs
- Quad.cs
- LassoHelper.cs
- RtfControlWordInfo.cs
- MailAddress.cs
- AssemblyInfo.cs
- TouchFrameEventArgs.cs
- ServiceElementCollection.cs
- EntityDataSourceDesigner.cs
- ReservationNotFoundException.cs
- StreamReader.cs
- LoadWorkflowAsyncResult.cs
- ListViewInsertEventArgs.cs
- XmlSubtreeReader.cs
- FlowLayoutPanel.cs
- RequestQueryParser.cs
- SessionStateSection.cs
- WebPartConnectionsConnectVerb.cs
- NativeRecognizer.cs
- WebPartConnectionsConnectVerb.cs
- LinkTarget.cs
- SortExpressionBuilder.cs
- __ComObject.cs
- CollectionViewGroupRoot.cs
- ExecutionEngineException.cs
- hebrewshape.cs
- ResolveNameEventArgs.cs
- SpellerInterop.cs
- AssociationTypeEmitter.cs
- SqlExpressionNullability.cs
- ApplicationServiceHelper.cs
- EntityExpressionVisitor.cs
- XmlLinkedNode.cs
- figurelength.cs
- XmlLoader.cs
- GridViewRowCollection.cs
- newinstructionaction.cs
- DataDocumentXPathNavigator.cs
- IncrementalCompileAnalyzer.cs
- TakeQueryOptionExpression.cs
- DataGridViewCellCancelEventArgs.cs
- XmlReflectionMember.cs
- categoryentry.cs
- SecurityBindingElementImporter.cs
- XmlReturnReader.cs
- GraphicsPath.cs
- FileDialogPermission.cs
- HwndKeyboardInputProvider.cs
- _KerberosClient.cs
- PenThreadPool.cs
- CaseInsensitiveOrdinalStringComparer.cs
- CopyAttributesAction.cs
- TextPointerBase.cs
- GifBitmapEncoder.cs
- MultipartContentParser.cs
- ComponentCollection.cs
- EntityChangedParams.cs
- RoleService.cs
- XslVisitor.cs
- SqlConnectionPoolProviderInfo.cs
- RelatedView.cs
- IxmlLineInfo.cs
- ThumbAutomationPeer.cs
- ParseElement.cs
- AccessDataSource.cs
- ConnectionInterfaceCollection.cs
- DrawingAttributeSerializer.cs
- ListDictionary.cs
- CompositeControl.cs
- CoTaskMemUnicodeSafeHandle.cs
- TextServicesCompartmentEventSink.cs
- BorderSidesEditor.cs
- FileRecordSequenceHelper.cs