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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LayoutTableCell.cs
- IntSecurity.cs
- GenericWebPart.cs
- TableLayout.cs
- SystemIPv4InterfaceProperties.cs
- TextMetrics.cs
- DBBindings.cs
- RequestUriProcessor.cs
- ValidatingReaderNodeData.cs
- HttpListenerRequestUriBuilder.cs
- ItemDragEvent.cs
- Int32Rect.cs
- TimeSpanMinutesConverter.cs
- RtfControls.cs
- ToolStripPanel.cs
- ByteConverter.cs
- RuntimeWrappedException.cs
- FormsAuthenticationUser.cs
- DataGridViewSortCompareEventArgs.cs
- ImmutableCollection.cs
- BaseParagraph.cs
- WhitespaceRule.cs
- ConfigXmlAttribute.cs
- SoapAttributeOverrides.cs
- SchemaCollectionPreprocessor.cs
- EnumerationRangeValidationUtil.cs
- DataComponentNameHandler.cs
- SiteMap.cs
- RadioButton.cs
- LicenseManager.cs
- ContainerParaClient.cs
- DiffuseMaterial.cs
- XXXOnTypeBuilderInstantiation.cs
- ReliableOutputSessionChannel.cs
- Crc32Helper.cs
- GeneralTransform2DTo3DTo2D.cs
- InputMethodStateTypeInfo.cs
- Int32CollectionConverter.cs
- StylusPointProperties.cs
- ToolStripLabel.cs
- OleDbException.cs
- Queue.cs
- EdmSchemaAttribute.cs
- ProviderMetadataCachedInformation.cs
- PrimitiveDataContract.cs
- DrawingAttributes.cs
- DbCommandDefinition.cs
- OdbcFactory.cs
- WebPartDisplayModeCancelEventArgs.cs
- WebPartZone.cs
- BindingCompleteEventArgs.cs
- MemoryRecordBuffer.cs
- CommonDialog.cs
- PrintPageEvent.cs
- ExpressionBuilder.cs
- figurelengthconverter.cs
- Inline.cs
- SolidBrush.cs
- Polygon.cs
- IntegerValidatorAttribute.cs
- CompilerGlobalScopeAttribute.cs
- ToolZoneDesigner.cs
- RestHandlerFactory.cs
- RtfToXamlLexer.cs
- BrowserInteropHelper.cs
- BinaryObjectReader.cs
- CustomTypeDescriptor.cs
- RemotingConfigParser.cs
- SkewTransform.cs
- EventLogException.cs
- DataTemplateKey.cs
- XmlAnyElementAttribute.cs
- FlowNode.cs
- DataGridLength.cs
- ClusterRegistryConfigurationProvider.cs
- XPathDocumentIterator.cs
- SamlNameIdentifierClaimResource.cs
- DodSequenceMerge.cs
- ASCIIEncoding.cs
- IDQuery.cs
- ParameterCollection.cs
- COAUTHINFO.cs
- GridItemProviderWrapper.cs
- ServiceActivationException.cs
- HtmlObjectListAdapter.cs
- IntranetCredentialPolicy.cs
- XmlBindingWorker.cs
- CatalogZoneBase.cs
- GregorianCalendarHelper.cs
- NumberFunctions.cs
- CqlBlock.cs
- prompt.cs
- VersionPair.cs
- DesignOnlyAttribute.cs
- Point3DConverter.cs
- Rect3D.cs
- TextProperties.cs
- TreeViewAutomationPeer.cs
- HTTPRemotingHandler.cs
- XPathConvert.cs