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
- StreamInfo.cs
- XmlNavigatorFilter.cs
- DataBindingCollection.cs
- externdll.cs
- LiteralSubsegment.cs
- AnimationStorage.cs
- BamlLocalizationDictionary.cs
- StringFunctions.cs
- ResourceSetExpression.cs
- CodeObject.cs
- CharEntityEncoderFallback.cs
- PerformanceCountersElement.cs
- SqlDelegatedTransaction.cs
- FormatterConverter.cs
- SqlProviderServices.cs
- UDPClient.cs
- CodeAccessPermission.cs
- SqlClientWrapperSmiStream.cs
- ByteAnimationUsingKeyFrames.cs
- RegionIterator.cs
- Thumb.cs
- StyleCollection.cs
- Queue.cs
- MasterPage.cs
- ProxyHelper.cs
- PageContentCollection.cs
- Point3DConverter.cs
- DockPattern.cs
- MulticastDelegate.cs
- EastAsianLunisolarCalendar.cs
- DeflateStreamAsyncResult.cs
- UnknownBitmapDecoder.cs
- ResetableIterator.cs
- DebugControllerThread.cs
- ClientScriptManager.cs
- ComplexTypeEmitter.cs
- ProtocolException.cs
- PartManifestEntry.cs
- XmlCharacterData.cs
- Timeline.cs
- EntitySetDataBindingList.cs
- SiteMapNodeItemEventArgs.cs
- WindowsPrincipal.cs
- RadioButton.cs
- NullableDecimalMinMaxAggregationOperator.cs
- ADConnectionHelper.cs
- ExpressionPrinter.cs
- NetworkInformationPermission.cs
- PreviewControlDesigner.cs
- InkSerializer.cs
- QueryOptionExpression.cs
- AsyncDataRequest.cs
- PropertyDescriptorGridEntry.cs
- CompressEmulationStream.cs
- OleDbParameter.cs
- ComplexTypeEmitter.cs
- Camera.cs
- HttpSocketManager.cs
- IgnoreDataMemberAttribute.cs
- DrawingContextDrawingContextWalker.cs
- ConnectionManagementSection.cs
- Win32MouseDevice.cs
- EmulateRecognizeCompletedEventArgs.cs
- SqlConnectionFactory.cs
- ZipIOExtraFieldElement.cs
- PkcsMisc.cs
- WebAdminConfigurationHelper.cs
- ModelTypeConverter.cs
- ColumnClickEvent.cs
- ToolStripItem.cs
- RecordManager.cs
- TagPrefixCollection.cs
- XmlILAnnotation.cs
- ACE.cs
- SystemEvents.cs
- ValidationEventArgs.cs
- ResourceManager.cs
- LOSFormatter.cs
- SafeReversePInvokeHandle.cs
- StorageAssociationSetMapping.cs
- MatrixAnimationUsingPath.cs
- DesignerSerializerAttribute.cs
- DataProviderNameConverter.cs
- WriteLineDesigner.xaml.cs
- EntityDataReader.cs
- TemplateControlParser.cs
- EventSinkActivityDesigner.cs
- CodeAccessSecurityEngine.cs
- WebPartExportVerb.cs
- ControlBuilder.cs
- Separator.cs
- SQLMoney.cs
- RenderingEventArgs.cs
- DataRecord.cs
- DeviceContext.cs
- Int32RectValueSerializer.cs
- CodeRegionDirective.cs
- SafeLibraryHandle.cs
- TreeViewHitTestInfo.cs
- PeerInputChannel.cs