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
- AppDomainInstanceProvider.cs
- WindowsGraphics2.cs
- GridViewUpdatedEventArgs.cs
- ProxyHwnd.cs
- BitStack.cs
- DesignerSelectionListAdapter.cs
- HandlerWithFactory.cs
- RecognizedPhrase.cs
- EditingMode.cs
- QueryResult.cs
- SqlUserDefinedTypeAttribute.cs
- DataGridCellItemAutomationPeer.cs
- DictionarySurrogate.cs
- DataGridViewCellLinkedList.cs
- ImageConverter.cs
- Wrapper.cs
- SvcMapFileSerializer.cs
- UpdateCommand.cs
- TreeNodeClickEventArgs.cs
- AggregateException.cs
- ResourceReferenceKeyNotFoundException.cs
- ConfigXmlCDataSection.cs
- ListItemsPage.cs
- EpmCustomContentSerializer.cs
- RuntimeIdentifierPropertyAttribute.cs
- SecurityResources.cs
- WebBrowser.cs
- Util.cs
- CatalogPartChrome.cs
- AsymmetricAlgorithm.cs
- XamlFilter.cs
- Base64Encoder.cs
- ConfigDefinitionUpdates.cs
- SynchronizationValidator.cs
- XmlUtil.cs
- PersonalizablePropertyEntry.cs
- ModelUtilities.cs
- FillErrorEventArgs.cs
- WhitespaceRuleReader.cs
- Tile.cs
- StrongNameSignatureInformation.cs
- Debug.cs
- ThreadInterruptedException.cs
- DispatcherTimer.cs
- Pointer.cs
- DataServiceQueryProvider.cs
- __TransparentProxy.cs
- AmbientValueAttribute.cs
- TypeSource.cs
- SByteConverter.cs
- ListViewTableRow.cs
- RepeatBehaviorConverter.cs
- ColorInterpolationModeValidation.cs
- MetadataSection.cs
- MulticastIPAddressInformationCollection.cs
- ProxyElement.cs
- ConsumerConnectionPointCollection.cs
- CannotUnloadAppDomainException.cs
- WorkflowServiceNamespace.cs
- TimeManager.cs
- HttpCachePolicy.cs
- DataControlLinkButton.cs
- ItemType.cs
- DomainUpDown.cs
- serverconfig.cs
- UxThemeWrapper.cs
- SaveFileDialogDesigner.cs
- WebOperationContext.cs
- IIS7UserPrincipal.cs
- PageFunction.cs
- SessionStateUtil.cs
- UriScheme.cs
- SafeRegistryHandle.cs
- TreeNodeCollection.cs
- HtmlInputSubmit.cs
- ComplexType.cs
- PropertyEntry.cs
- TransactedReceiveScope.cs
- SurrogateDataContract.cs
- DocumentViewerHelper.cs
- ExceptionList.cs
- DocComment.cs
- SynchronizedDispatch.cs
- FolderNameEditor.cs
- TabControlAutomationPeer.cs
- XmlSchemaSimpleTypeList.cs
- StateInitializationDesigner.cs
- ExpandCollapsePattern.cs
- basevalidator.cs
- ChtmlTextWriter.cs
- ExpressionCopier.cs
- ModifierKeysConverter.cs
- wgx_sdk_version.cs
- TypedColumnHandler.cs
- ListViewTableCell.cs
- GridViewPageEventArgs.cs
- DataTableMapping.cs
- ToolStripDesignerUtils.cs
- DataServiceException.cs
- PageSettings.cs