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
- DirectionalAction.cs
- ServiceModelActivationSectionGroup.cs
- BitmapEffectState.cs
- PointAnimationBase.cs
- CachedCompositeFamily.cs
- ComponentCollection.cs
- RootContext.cs
- PropertyInfoSet.cs
- ObjectDataSourceChooseTypePanel.cs
- DataControlFieldHeaderCell.cs
- HotSpot.cs
- CodeTypeDelegate.cs
- TrackingServices.cs
- CustomErrorCollection.cs
- OleDbErrorCollection.cs
- RequestUriProcessor.cs
- WeakHashtable.cs
- WindowsTooltip.cs
- Converter.cs
- BinHexEncoding.cs
- ChameleonKey.cs
- SystemParameters.cs
- AutoResetEvent.cs
- PipelineModuleStepContainer.cs
- DeferredReference.cs
- ProviderSettings.cs
- SQLDateTime.cs
- XmlElementCollection.cs
- ReplyAdapterChannelListener.cs
- ParameterCollection.cs
- ViewCellRelation.cs
- SectionRecord.cs
- NullRuntimeConfig.cs
- HtmlFormWrapper.cs
- PrintingPermissionAttribute.cs
- RtfToXamlReader.cs
- PreservationFileReader.cs
- NavigateEvent.cs
- ISO2022Encoding.cs
- AssemblyAttributesGoHere.cs
- ResourcesChangeInfo.cs
- SystemResources.cs
- ApplicationInfo.cs
- Empty.cs
- FixedDocumentSequencePaginator.cs
- FileSystemEventArgs.cs
- MatrixAnimationUsingKeyFrames.cs
- UnsignedPublishLicense.cs
- SmtpCommands.cs
- SpeechEvent.cs
- BinaryMessageFormatter.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- SqlNodeTypeOperators.cs
- XmlQueryContext.cs
- PathFigure.cs
- AssociationSet.cs
- ImportCatalogPart.cs
- ParagraphVisual.cs
- ExpressionParser.cs
- ListCollectionView.cs
- EmulateRecognizeCompletedEventArgs.cs
- SelectionItemPattern.cs
- DebugView.cs
- smtpconnection.cs
- Util.cs
- HierarchicalDataSourceControl.cs
- SerializationInfo.cs
- RtfFormatStack.cs
- IfAction.cs
- PerformanceCounters.cs
- EntityTemplateUserControl.cs
- IndexedEnumerable.cs
- SmiSettersStream.cs
- PinnedBufferMemoryStream.cs
- ImportCatalogPart.cs
- SpAudioStreamWrapper.cs
- DesignerHelpers.cs
- AuthenticationModuleElementCollection.cs
- RequestTimeoutManager.cs
- EraserBehavior.cs
- WorkflowTraceTransfer.cs
- BamlRecords.cs
- ListViewTableRow.cs
- GroupJoinQueryOperator.cs
- StrokeFIndices.cs
- SchemaNamespaceManager.cs
- ThreadAbortException.cs
- HttpClientCertificate.cs
- RequestStatusBarUpdateEventArgs.cs
- HtmlInputHidden.cs
- ClientUrlResolverWrapper.cs
- PointCollection.cs
- NavigateEvent.cs
- ImageSourceValueSerializer.cs
- CallSiteBinder.cs
- TransformerConfigurationWizardBase.cs
- ListViewHitTestInfo.cs
- LineMetrics.cs
- PermissionListSet.cs
- GeneratedView.cs