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
- TemplateField.cs
- TextRunCache.cs
- DbConnectionPoolIdentity.cs
- PasswordTextContainer.cs
- TrustManager.cs
- TemplatedMailWebEventProvider.cs
- StyleXamlParser.cs
- Grid.cs
- MailSettingsSection.cs
- MemberInfoSerializationHolder.cs
- EmulateRecognizeCompletedEventArgs.cs
- SafeHandles.cs
- XmlWriterTraceListener.cs
- ComponentResourceManager.cs
- CheckBoxFlatAdapter.cs
- XMLSyntaxException.cs
- OperatorExpressions.cs
- MarshalByValueComponent.cs
- VirtualPathData.cs
- DateTimeConverter2.cs
- HandledEventArgs.cs
- CodeDOMUtility.cs
- TypeContext.cs
- ColorPalette.cs
- GeneralTransform.cs
- EventToken.cs
- DetailsViewDeleteEventArgs.cs
- MethodExecutor.cs
- ProgressiveCrcCalculatingStream.cs
- MessageBox.cs
- WebConfigurationFileMap.cs
- CodeConditionStatement.cs
- TrustLevel.cs
- AsyncWaitHandle.cs
- RichTextBox.cs
- storepermission.cs
- TemplatedWizardStep.cs
- SchemaElementDecl.cs
- ZipIORawDataFileBlock.cs
- TiffBitmapEncoder.cs
- DesignerLoader.cs
- CultureTable.cs
- QilParameter.cs
- CodeValidator.cs
- EventData.cs
- XmlUnspecifiedAttribute.cs
- PersistenceMetadataNamespace.cs
- SessionStateContainer.cs
- LogExtent.cs
- CommandConverter.cs
- CompiledRegexRunner.cs
- _ConnectOverlappedAsyncResult.cs
- RepeatButtonAutomationPeer.cs
- ArrangedElementCollection.cs
- QueryResponse.cs
- XmlByteStreamWriter.cs
- ArrayExtension.cs
- Label.cs
- LinqDataSourceDeleteEventArgs.cs
- SubpageParagraph.cs
- ResourcePermissionBase.cs
- InputGestureCollection.cs
- RoleProviderPrincipal.cs
- AdornerPresentationContext.cs
- ValueProviderWrapper.cs
- ApplicationId.cs
- MiniLockedBorderGlyph.cs
- XmlSchemaSimpleTypeUnion.cs
- RecipientServiceModelSecurityTokenRequirement.cs
- DbConnectionPoolIdentity.cs
- GeneralTransform3D.cs
- SerializationHelper.cs
- Metadata.cs
- ADConnectionHelper.cs
- StringBuilder.cs
- FusionWrap.cs
- SecurityTokenRequirement.cs
- XmlSchemaCompilationSettings.cs
- PersonalizablePropertyEntry.cs
- TrackBar.cs
- MenuItemCollection.cs
- Renderer.cs
- LexicalChunk.cs
- ConfigXmlDocument.cs
- CheckBoxStandardAdapter.cs
- QueryCacheManager.cs
- AncestorChangedEventArgs.cs
- XmlSchemaSimpleContent.cs
- TargetInvocationException.cs
- SQLInt16Storage.cs
- _ContextAwareResult.cs
- XsltCompileContext.cs
- RegexFCD.cs
- GlobalEventManager.cs
- DbConnectionFactory.cs
- OAVariantLib.cs
- Int32CollectionConverter.cs
- SecurityException.cs
- lengthconverter.cs
- ReflectionPermission.cs