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
- CollectionViewGroup.cs
- SiteMapNodeItem.cs
- RawAppCommandInputReport.cs
- ControlPaint.cs
- HtmlWindowCollection.cs
- SessionStateSection.cs
- UdpChannelListener.cs
- CheckBoxRenderer.cs
- ToolStripContentPanel.cs
- MultiBindingExpression.cs
- TextTreeInsertUndoUnit.cs
- AttributeCollection.cs
- RequestCacheValidator.cs
- RotationValidation.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- WSFederationHttpBindingCollectionElement.cs
- XhtmlTextWriter.cs
- Baml2006ReaderFrame.cs
- MediaTimeline.cs
- TextContainerChangeEventArgs.cs
- ToolbarAUtomationPeer.cs
- XsltSettings.cs
- ResourceExpression.cs
- MethodRental.cs
- XmlNamedNodeMap.cs
- RtfFormatStack.cs
- DataGridViewButtonCell.cs
- Trustee.cs
- InputBuffer.cs
- Assembly.cs
- ButtonColumn.cs
- TextElementCollectionHelper.cs
- DataServices.cs
- OrderedDictionaryStateHelper.cs
- InkCanvasSelectionAdorner.cs
- StaticFileHandler.cs
- WebPartTransformerCollection.cs
- GridPatternIdentifiers.cs
- PartitionResolver.cs
- UniqueIdentifierService.cs
- HashCodeCombiner.cs
- templategroup.cs
- storepermissionattribute.cs
- BufferAllocator.cs
- DesignerVerbToolStripMenuItem.cs
- ServiceDebugElement.cs
- TextBoxBaseDesigner.cs
- ListBox.cs
- SqlDataSourceCache.cs
- XmlSchemaComplexType.cs
- LiteralDesigner.cs
- PackageStore.cs
- MenuItemStyle.cs
- RawStylusInput.cs
- ObjectIDGenerator.cs
- MethodBody.cs
- CustomErrorsSection.cs
- RegexParser.cs
- StrokeCollectionDefaultValueFactory.cs
- EdmError.cs
- baseshape.cs
- ISFClipboardData.cs
- AliasExpr.cs
- SeekStoryboard.cs
- ButtonChrome.cs
- IntSecurity.cs
- EntityDataSourceWizardForm.cs
- ToolStripLocationCancelEventArgs.cs
- ResourceDescriptionAttribute.cs
- MessageDecoder.cs
- Baml2006ReaderSettings.cs
- EpmSyndicationContentSerializer.cs
- ListBoxAutomationPeer.cs
- ToolStripDropDownItem.cs
- IBuiltInEvidence.cs
- ConfigurationPropertyAttribute.cs
- LOSFormatter.cs
- DBConcurrencyException.cs
- NonParentingControl.cs
- SnapLine.cs
- CodeAttributeArgumentCollection.cs
- DataGridTablesFactory.cs
- AccessedThroughPropertyAttribute.cs
- UriScheme.cs
- ModelFunctionTypeElement.cs
- Propagator.ExtentPlaceholderCreator.cs
- GeometryCombineModeValidation.cs
- MarkupObject.cs
- PropertyBuilder.cs
- KeyInterop.cs
- SettingsAttributes.cs
- WorkflowRuntimeServiceElementCollection.cs
- ClientRolePrincipal.cs
- NavigationService.cs
- WebMessageEncodingElement.cs
- VisualBrush.cs
- PresentationSource.cs
- BuildProvidersCompiler.cs
- StrictAndMessageFilter.cs
- CheckBox.cs