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
- GridView.cs
- HttpRuntimeSection.cs
- DataObjectSettingDataEventArgs.cs
- CodeArgumentReferenceExpression.cs
- SelectedCellsChangedEventArgs.cs
- XmlSchemaComplexType.cs
- WinFormsSecurity.cs
- WebPartConnectVerb.cs
- PaperSource.cs
- SharedDp.cs
- WebEvents.cs
- WebPartTransformerAttribute.cs
- SpellerHighlightLayer.cs
- KeyGestureValueSerializer.cs
- ProcessMonitor.cs
- UniformGrid.cs
- AddingNewEventArgs.cs
- UserControl.cs
- SqlDataSourceWizardForm.cs
- PasswordTextNavigator.cs
- DataGrid.cs
- NavigationHelper.cs
- TransformProviderWrapper.cs
- ProcessModule.cs
- QueryCacheManager.cs
- Descriptor.cs
- LineServices.cs
- EndOfStreamException.cs
- LayoutTable.cs
- XslVisitor.cs
- figurelengthconverter.cs
- ByteStreamMessageEncodingElement.cs
- ToolStripOverflowButton.cs
- ElementNotAvailableException.cs
- GridViewSortEventArgs.cs
- ILGenerator.cs
- MatcherBuilder.cs
- TextUtf8RawTextWriter.cs
- ReversePositionQuery.cs
- DeploymentSection.cs
- ClientBuildManager.cs
- Opcode.cs
- ConfigXmlCDataSection.cs
- IndependentAnimationStorage.cs
- EDesignUtil.cs
- IncrementalCompileAnalyzer.cs
- ArglessEventHandlerProxy.cs
- Point4D.cs
- SoapSchemaExporter.cs
- ToolboxSnapDragDropEventArgs.cs
- AuthenticationException.cs
- ClientApiGenerator.cs
- AsyncDataRequest.cs
- ModelPerspective.cs
- SafeNativeMethods.cs
- ArrayItemValue.cs
- SoapSchemaImporter.cs
- LogSwitch.cs
- PersonalizationAdministration.cs
- FrameworkContentElement.cs
- ImageKeyConverter.cs
- StrokeDescriptor.cs
- BinaryKeyIdentifierClause.cs
- EdgeProfileValidation.cs
- PackageFilter.cs
- NetStream.cs
- SQLDateTime.cs
- BulletedListEventArgs.cs
- Msmq4PoisonHandler.cs
- TriState.cs
- RawMouseInputReport.cs
- PageBreakRecord.cs
- PointLightBase.cs
- FieldNameLookup.cs
- AssemblyBuilderData.cs
- SemanticResolver.cs
- CodeNamespaceCollection.cs
- Attachment.cs
- SqlRecordBuffer.cs
- TextServicesCompartmentContext.cs
- OpenFileDialog.cs
- WmlMobileTextWriter.cs
- COM2EnumConverter.cs
- DesignTimeVisibleAttribute.cs
- XmlCharCheckingWriter.cs
- MetaDataInfo.cs
- MenuItemAutomationPeer.cs
- DecoderBestFitFallback.cs
- ClientCultureInfo.cs
- CollectionConverter.cs
- SymbolDocumentInfo.cs
- InstanceDescriptor.cs
- SpnEndpointIdentity.cs
- OdbcDataReader.cs
- DropShadowBitmapEffect.cs
- MembershipSection.cs
- DataMisalignedException.cs
- NonNullItemCollection.cs
- StylusButtonEventArgs.cs
- SynchronizationFilter.cs