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
- _UncName.cs
- ConfigurationHelpers.cs
- HttpException.cs
- PolyQuadraticBezierSegment.cs
- SqlTopReducer.cs
- Visual3D.cs
- SemanticValue.cs
- GridEntryCollection.cs
- LinkTarget.cs
- SmtpNetworkElement.cs
- TypedDataSourceCodeGenerator.cs
- CountAggregationOperator.cs
- DataGridViewRowsRemovedEventArgs.cs
- DbConnectionHelper.cs
- SiteOfOriginPart.cs
- MbpInfo.cs
- ObjectNavigationPropertyMapping.cs
- DataControlButton.cs
- ShellProvider.cs
- SaveWorkflowAsyncResult.cs
- EntityContainerEntitySet.cs
- TabItemWrapperAutomationPeer.cs
- Propagator.Evaluator.cs
- WindowsUpDown.cs
- SqlDependencyListener.cs
- InternalSafeNativeMethods.cs
- HttpCapabilitiesSectionHandler.cs
- WebPartAddingEventArgs.cs
- Missing.cs
- CollectionChangeEventArgs.cs
- ColumnHeader.cs
- ImageDrawing.cs
- XmlNamespaceMappingCollection.cs
- TextServicesDisplayAttribute.cs
- Matrix3DConverter.cs
- StdValidatorsAndConverters.cs
- StreamUpgradeProvider.cs
- DeflateEmulationStream.cs
- DataTableExtensions.cs
- Math.cs
- DecoderExceptionFallback.cs
- SessionEndingEventArgs.cs
- RtfToXamlReader.cs
- Classification.cs
- TextTreeTextElementNode.cs
- MappingSource.cs
- DragDrop.cs
- FtpWebRequest.cs
- UInt16.cs
- PersistChildrenAttribute.cs
- AnnotationHelper.cs
- AudioFormatConverter.cs
- BitmapEffectDrawing.cs
- ActivityTrace.cs
- x509utils.cs
- DataGridViewTextBoxEditingControl.cs
- Evaluator.cs
- BitmapEncoder.cs
- SettingsBindableAttribute.cs
- FormViewPageEventArgs.cs
- BitmapEffectInputConnector.cs
- AstNode.cs
- PrintPreviewDialog.cs
- ToolStripItemClickedEventArgs.cs
- DetailsViewRowCollection.cs
- CoTaskMemHandle.cs
- ConfigPathUtility.cs
- MailAddressParser.cs
- SqlParameter.cs
- WriteableBitmap.cs
- ManipulationInertiaStartingEventArgs.cs
- EventManager.cs
- VirtualDirectoryMappingCollection.cs
- Help.cs
- UrlMappingCollection.cs
- TextUtf8RawTextWriter.cs
- RuleSettingsCollection.cs
- WebPartMovingEventArgs.cs
- ProviderCollection.cs
- BrowserCapabilitiesFactoryBase.cs
- SettingsPropertyNotFoundException.cs
- ObjectTag.cs
- XhtmlBasicObjectListAdapter.cs
- SecurityException.cs
- ObjectViewListener.cs
- ReceiveDesigner.xaml.cs
- ProgressBarAutomationPeer.cs
- PerfCounters.cs
- ObservableCollection.cs
- DataViewManager.cs
- ScaleTransform.cs
- ResolvedKeyFrameEntry.cs
- WindowsImpersonationContext.cs
- ConnectivityStatus.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- RectangleConverter.cs
- ImageConverter.cs
- StyleModeStack.cs
- GroupBoxAutomationPeer.cs
- PlatformCulture.cs