Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- BufferModesCollection.cs
- MimeFormatter.cs
- AnimatedTypeHelpers.cs
- ChainOfDependencies.cs
- MailAddressCollection.cs
- PropertyDescriptorGridEntry.cs
- SemaphoreSecurity.cs
- ContentControl.cs
- WebControl.cs
- UriSectionData.cs
- MsmqAppDomainProtocolHandler.cs
- QuestionEventArgs.cs
- GradientBrush.cs
- WebControlAdapter.cs
- handlecollector.cs
- SessionPageStatePersister.cs
- SystemInformation.cs
- InkCanvas.cs
- ClosableStream.cs
- ExternalException.cs
- CodeBlockBuilder.cs
- ResourcesBuildProvider.cs
- Span.cs
- TextServicesManager.cs
- ImageSource.cs
- ZipIOExtraFieldPaddingElement.cs
- TypeToken.cs
- PageParser.cs
- RegionData.cs
- BindStream.cs
- ProgressBar.cs
- DataGridViewLinkColumn.cs
- DrawingImage.cs
- UserNameSecurityTokenProvider.cs
- Message.cs
- HelpEvent.cs
- ConfigurationSection.cs
- RequestNavigateEventArgs.cs
- PartialArray.cs
- PrintController.cs
- SRGSCompiler.cs
- ItemCollectionEditor.cs
- DBConcurrencyException.cs
- XslTransformFileEditor.cs
- BlurBitmapEffect.cs
- BooleanToVisibilityConverter.cs
- FloaterParaClient.cs
- BaseParser.cs
- WebServiceErrorEvent.cs
- NamedPipeHostedTransportConfiguration.cs
- AtomServiceDocumentSerializer.cs
- ShaderRenderModeValidation.cs
- FloaterBaseParagraph.cs
- Utils.cs
- DataSourceView.cs
- WinEventQueueItem.cs
- PersonalizationState.cs
- ConnectionStringSettingsCollection.cs
- IssuanceTokenProviderState.cs
- SynchronizationContext.cs
- NamedElement.cs
- DataServicePagingProviderWrapper.cs
- TextBoxAutoCompleteSourceConverter.cs
- CellPartitioner.cs
- SessionPageStatePersister.cs
- HtmlInputReset.cs
- XmlResolver.cs
- CheckBoxField.cs
- TileBrush.cs
- SqlBulkCopyColumnMapping.cs
- AppSecurityManager.cs
- XmlHierarchicalEnumerable.cs
- PointAnimationBase.cs
- XmlResolver.cs
- DebugInfoGenerator.cs
- HealthMonitoringSection.cs
- WorkflowApplicationAbortedException.cs
- TextTreeRootNode.cs
- MarkedHighlightComponent.cs
- TableLayoutCellPaintEventArgs.cs
- ProxyWebPartConnectionCollection.cs
- EventLogPermissionEntryCollection.cs
- DataServiceStreamResponse.cs
- CultureTable.cs
- Size3DConverter.cs
- Page.cs
- FusionWrap.cs
- Axis.cs
- _AutoWebProxyScriptWrapper.cs
- LocalTransaction.cs
- InputReferenceExpression.cs
- IdentityNotMappedException.cs
- StylusSystemGestureEventArgs.cs
- TypeHelper.cs
- KeyPressEvent.cs
- GraphicsContainer.cs
- IsolatedStorageException.cs
- CacheMemory.cs
- FontStretchConverter.cs
- MDIControlStrip.cs