Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- WorkflowRuntimeServiceElement.cs
- MobileControlPersister.cs
- SchemaTableOptionalColumn.cs
- IntPtr.cs
- SamlNameIdentifierClaimResource.cs
- OutputScope.cs
- IApplicationTrustManager.cs
- DataListItemCollection.cs
- COM2FontConverter.cs
- followingquery.cs
- SourceFileInfo.cs
- Directory.cs
- Rotation3DAnimationBase.cs
- HtmlPhoneCallAdapter.cs
- WebPartZoneBase.cs
- DataSourceHelper.cs
- DetailsViewCommandEventArgs.cs
- Effect.cs
- LogicalTreeHelper.cs
- ComplexBindingPropertiesAttribute.cs
- CodeSubDirectoriesCollection.cs
- SqlUDTStorage.cs
- EarlyBoundInfo.cs
- DesignerCategoryAttribute.cs
- EmptyElement.cs
- PointKeyFrameCollection.cs
- OleDbError.cs
- WindowsToolbar.cs
- ActiveXHelper.cs
- RelationshipDetailsRow.cs
- UpDownBase.cs
- SafeNativeMemoryHandle.cs
- ListItemCollection.cs
- RowCache.cs
- ToolStripItemTextRenderEventArgs.cs
- DockingAttribute.cs
- IsolatedStorageFilePermission.cs
- PasswordPropertyTextAttribute.cs
- BindingContext.cs
- SafeEventLogWriteHandle.cs
- DocumentGridContextMenu.cs
- CompilationUnit.cs
- PersonalizationAdministration.cs
- PropertyTabChangedEvent.cs
- __ComObject.cs
- Camera.cs
- TextTreeDeleteContentUndoUnit.cs
- ViewStateChangedEventArgs.cs
- documentation.cs
- BitmapEffectrendercontext.cs
- TextEditorTyping.cs
- DependentList.cs
- ComboBox.cs
- ListViewDeleteEventArgs.cs
- ParameterBuilder.cs
- EditorZoneAutoFormat.cs
- TemplateBindingExpressionConverter.cs
- StorageEndPropertyMapping.cs
- Point3DConverter.cs
- FontSource.cs
- GenericRootAutomationPeer.cs
- COM2IDispatchConverter.cs
- COAUTHINFO.cs
- NetworkCredential.cs
- DataViewManager.cs
- ToolboxItem.cs
- DateTimeParse.cs
- RayMeshGeometry3DHitTestResult.cs
- StringFreezingAttribute.cs
- DiscoveryDocumentReference.cs
- BinaryHeap.cs
- CachedTypeface.cs
- mediaclock.cs
- Substitution.cs
- CompatibleIComparer.cs
- PrePostDescendentsWalker.cs
- SqlCrossApplyToCrossJoin.cs
- RegexCaptureCollection.cs
- SymbolPair.cs
- File.cs
- XmlSerializationGeneratedCode.cs
- HealthMonitoringSection.cs
- TypeUtil.cs
- XmlCompatibilityReader.cs
- QilValidationVisitor.cs
- DataRecordInternal.cs
- webeventbuffer.cs
- DiagnosticTrace.cs
- SplitContainer.cs
- SourceFileInfo.cs
- InputBinding.cs
- HMACSHA384.cs
- DispatcherHooks.cs
- Sorting.cs
- LinqDataSourceUpdateEventArgs.cs
- StorageEntityTypeMapping.cs
- SQLDecimalStorage.cs
- SqlFacetAttribute.cs
- RawKeyboardInputReport.cs
- PeerObject.cs