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
- EntityKeyElement.cs
- ImageField.cs
- SqlSupersetValidator.cs
- XmlQualifiedNameTest.cs
- NativeMethods.cs
- CodeConstructor.cs
- AppSettingsExpressionBuilder.cs
- RuleProcessor.cs
- CustomAttributeFormatException.cs
- HTMLTextWriter.cs
- TextBoxLine.cs
- CodeComment.cs
- PersistenceTypeAttribute.cs
- complextypematerializer.cs
- Array.cs
- XmlUnspecifiedAttribute.cs
- SqlClientWrapperSmiStream.cs
- FileEnumerator.cs
- SmtpMail.cs
- UInt64Converter.cs
- Matrix3D.cs
- ContractMapping.cs
- PresentationTraceSources.cs
- Column.cs
- infer.cs
- TableColumnCollection.cs
- SqlTrackingWorkflowInstance.cs
- DialogResultConverter.cs
- AuthenticateEventArgs.cs
- Brushes.cs
- EntityClientCacheEntry.cs
- ConnectionOrientedTransportBindingElement.cs
- ZipFileInfo.cs
- ConstraintManager.cs
- ViewGenerator.cs
- ActivityWithResultConverter.cs
- BuildDependencySet.cs
- HtmlFormWrapper.cs
- DecimalConstantAttribute.cs
- ReadOnlyHierarchicalDataSource.cs
- Set.cs
- ClientSideQueueItem.cs
- ContainerAction.cs
- StringComparer.cs
- StringReader.cs
- QueryOutputWriter.cs
- IRCollection.cs
- RadioButtonStandardAdapter.cs
- KeyedQueue.cs
- UserControl.cs
- COM2AboutBoxPropertyDescriptor.cs
- NotificationContext.cs
- ValidationEventArgs.cs
- WrapPanel.cs
- ContextStaticAttribute.cs
- TextContainerHelper.cs
- OpenTypeLayout.cs
- XamlDesignerSerializationManager.cs
- DataAccessException.cs
- PagesSection.cs
- Context.cs
- EdmTypeAttribute.cs
- ReferencedCollectionType.cs
- HtmlLink.cs
- WorkflowRequestContext.cs
- CubicEase.cs
- MessageSmuggler.cs
- QilXmlWriter.cs
- NativeMethods.cs
- HttpTransportSecurity.cs
- TemplatePropertyEntry.cs
- TemplateControlBuildProvider.cs
- MorphHelper.cs
- DataGridTableCollection.cs
- CodeTypeDeclarationCollection.cs
- XmlILConstructAnalyzer.cs
- GridViewRow.cs
- ApplicationFileCodeDomTreeGenerator.cs
- RectangleConverter.cs
- EntityConnectionStringBuilder.cs
- CheckedListBox.cs
- XmlUtil.cs
- WindowsIPAddress.cs
- LayoutTable.cs
- EdmItemCollection.cs
- TypeInitializationException.cs
- StreamedWorkflowDefinitionContext.cs
- DataGridViewDesigner.cs
- WebException.cs
- EntityDataSource.cs
- TrustSection.cs
- DateRangeEvent.cs
- FillRuleValidation.cs
- StringDictionaryEditor.cs
- FormsAuthenticationTicket.cs
- LabelLiteral.cs
- WebBrowserEvent.cs
- HttpHandlerActionCollection.cs
- SelectionWordBreaker.cs
- MergeFailedEvent.cs