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
- UIAgentAsyncBeginRequest.cs
- SystemEvents.cs
- BindingNavigator.cs
- AdCreatedEventArgs.cs
- SocketSettings.cs
- TreeViewAutomationPeer.cs
- SpanIndex.cs
- ToolStripSplitButton.cs
- TextBlockAutomationPeer.cs
- UIElementIsland.cs
- Compiler.cs
- SafeNativeMethods.cs
- SecurityCriticalDataForSet.cs
- relpropertyhelper.cs
- PolicyStatement.cs
- XmlMembersMapping.cs
- CompositeCollection.cs
- DefaultCompensation.cs
- RuntimeEnvironment.cs
- WinFormsSpinner.cs
- ComponentTray.cs
- SpellerHighlightLayer.cs
- NamespaceCollection.cs
- SqlDataSourceCache.cs
- FontStyle.cs
- SymDocumentType.cs
- TreeView.cs
- BinarySecretKeyIdentifierClause.cs
- MiniParameterInfo.cs
- SendContent.cs
- SoapIgnoreAttribute.cs
- RoutedEvent.cs
- XmlSchemaGroupRef.cs
- DetailsViewPageEventArgs.cs
- AnnotationMap.cs
- Style.cs
- SqlUserDefinedTypeAttribute.cs
- StoreItemCollection.cs
- ContainerSelectorActiveEvent.cs
- DynamicDataRouteHandler.cs
- SystemException.cs
- PerformanceCounterPermissionEntryCollection.cs
- DataServiceRequestException.cs
- ComponentDesigner.cs
- ValueTypeFixupInfo.cs
- ReturnValue.cs
- DisplayMemberTemplateSelector.cs
- DataRowCollection.cs
- TextRangeSerialization.cs
- DeviceContext2.cs
- LicenseProviderAttribute.cs
- ButtonBaseDesigner.cs
- RootCodeDomSerializer.cs
- newinstructionaction.cs
- EditorPartChrome.cs
- Debug.cs
- DataAdapter.cs
- TypeValidationEventArgs.cs
- RotationValidation.cs
- PointValueSerializer.cs
- DescendentsWalker.cs
- CodeNamespace.cs
- ObjectSecurity.cs
- VisualStyleInformation.cs
- FacetValues.cs
- SerializationObjectManager.cs
- TransformConverter.cs
- GlobalizationAssembly.cs
- FloaterParagraph.cs
- TriggerAction.cs
- SqlClientPermission.cs
- FormViewUpdateEventArgs.cs
- TreeNodeCollectionEditor.cs
- GridLength.cs
- XmlSequenceWriter.cs
- FormViewDeleteEventArgs.cs
- SqlDataAdapter.cs
- DateTimeOffsetConverter.cs
- ActivityDesigner.cs
- AsyncMethodInvoker.cs
- StandardBindingElementCollection.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- ResourceProperty.cs
- DesignTableCollection.cs
- RelationshipSet.cs
- XmlElement.cs
- XmlSchemaAttributeGroupRef.cs
- WmpBitmapEncoder.cs
- Win32MouseDevice.cs
- ProxyWebPartManager.cs
- Buffer.cs
- SessionStateModule.cs
- ResourceExpressionEditor.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- ProtocolViolationException.cs
- DataSourceXmlTextReader.cs
- HelpEvent.cs
- FileDialogCustomPlacesCollection.cs
- AnimationStorage.cs
- PreviewPageInfo.cs