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
- AlternateViewCollection.cs
- RtfFormatStack.cs
- DynamicValidatorEventArgs.cs
- EventManager.cs
- InvokerUtil.cs
- ListViewSortEventArgs.cs
- MatrixTransform3D.cs
- DecimalAnimation.cs
- namescope.cs
- dataobject.cs
- SoundPlayerAction.cs
- FileEnumerator.cs
- BindingRestrictions.cs
- HandlerBase.cs
- arabicshape.cs
- Tile.cs
- DesignerAttributeInfo.cs
- XmlImplementation.cs
- Color.cs
- IsolatedStorage.cs
- Zone.cs
- MemberHolder.cs
- BamlLocalizationDictionary.cs
- IntSecurity.cs
- Ipv6Element.cs
- TableCell.cs
- DtrList.cs
- ResourceCategoryAttribute.cs
- _NTAuthentication.cs
- ObjectConverter.cs
- AnnouncementInnerClient11.cs
- GuidConverter.cs
- UrlMappingCollection.cs
- LayoutUtils.cs
- HuffCodec.cs
- WorkItem.cs
- BaseAsyncResult.cs
- TransactedBatchContext.cs
- GridViewRowEventArgs.cs
- Point.cs
- EnumDataContract.cs
- GeometryHitTestParameters.cs
- GeneralTransform3DGroup.cs
- LexicalChunk.cs
- __Filters.cs
- X509ChainElement.cs
- DrawingVisual.cs
- Directory.cs
- XmlSchemaParticle.cs
- ListViewInsertedEventArgs.cs
- DataDocumentXPathNavigator.cs
- RemotingConfigParser.cs
- ApplicationServicesHostFactory.cs
- ItemMap.cs
- MarkupProperty.cs
- EncoderNLS.cs
- SessionEndingEventArgs.cs
- TemplateNameScope.cs
- IntegerValidator.cs
- ProjectionRewriter.cs
- SqlDataReader.cs
- FastPropertyAccessor.cs
- EntityProviderServices.cs
- ManipulationVelocities.cs
- DesignerVerbCollection.cs
- VariableExpressionConverter.cs
- ConnectionOrientedTransportChannelFactory.cs
- Int16AnimationUsingKeyFrames.cs
- DataRowExtensions.cs
- CalloutQueueItem.cs
- SqlRowUpdatedEvent.cs
- XpsS0ValidatingLoader.cs
- DoubleCollection.cs
- MultipleViewProviderWrapper.cs
- MsmqOutputMessage.cs
- LZCodec.cs
- DragStartedEventArgs.cs
- ClientSettingsSection.cs
- XamlTypeMapperSchemaContext.cs
- Literal.cs
- ModuleBuilderData.cs
- XmlUtf8RawTextWriter.cs
- IODescriptionAttribute.cs
- LiteralControl.cs
- XmlMapping.cs
- ListViewHitTestInfo.cs
- DataGridCellItemAutomationPeer.cs
- ShimAsPublicXamlType.cs
- ProfilePropertySettingsCollection.cs
- FileRegion.cs
- PeerContact.cs
- ListViewAutomationPeer.cs
- ImpersonateTokenRef.cs
- RightsManagementPermission.cs
- ExternalException.cs
- CompModSwitches.cs
- GridToolTip.cs
- DataChangedEventManager.cs
- BooleanFacetDescriptionElement.cs
- Int64KeyFrameCollection.cs