Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / Stylus / StylusPointPropertyUnit.cs / 1305600 / 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
- RoleManagerEventArgs.cs
- WindowsAuthenticationModule.cs
- PanelDesigner.cs
- CompositeActivityTypeDescriptorProvider.cs
- Hex.cs
- DocumentAutomationPeer.cs
- XsdValidatingReader.cs
- WindowsAltTab.cs
- ServiceDescriptionContext.cs
- ByteAnimation.cs
- MaterializeFromAtom.cs
- ComplexPropertyEntry.cs
- LogReservationCollection.cs
- SplineKeyFrames.cs
- VectorAnimationUsingKeyFrames.cs
- Win32.cs
- MenuRendererStandards.cs
- Privilege.cs
- ProfileGroupSettingsCollection.cs
- RawKeyboardInputReport.cs
- ListControlBoundActionList.cs
- ReliabilityContractAttribute.cs
- PointLightBase.cs
- ThicknessAnimationUsingKeyFrames.cs
- DocobjHost.cs
- DoubleAnimation.cs
- RequestCache.cs
- TimelineGroup.cs
- wgx_commands.cs
- ConfigurationSettings.cs
- SqlFlattener.cs
- ProgressBar.cs
- GroupJoinQueryOperator.cs
- CqlBlock.cs
- DescendantBaseQuery.cs
- TokenBasedSetEnumerator.cs
- HeaderCollection.cs
- Trace.cs
- EdmSchemaError.cs
- ObfuscateAssemblyAttribute.cs
- MenuBase.cs
- OutputWindow.cs
- XmlAtomErrorReader.cs
- OdbcConnectionPoolProviderInfo.cs
- SID.cs
- NonParentingControl.cs
- IPEndPoint.cs
- MsiStyleLogWriter.cs
- RequestCachePolicyConverter.cs
- SAPICategories.cs
- TypeHelpers.cs
- TypedReference.cs
- ModulesEntry.cs
- TaskFormBase.cs
- SpecialNameAttribute.cs
- DataPagerCommandEventArgs.cs
- RegisteredExpandoAttribute.cs
- SafeEventLogWriteHandle.cs
- ElementNotEnabledException.cs
- InstanceStoreQueryResult.cs
- figurelength.cs
- TextRangeEdit.cs
- Timeline.cs
- Int64KeyFrameCollection.cs
- UIElementParaClient.cs
- HttpResponse.cs
- WriteableBitmap.cs
- QilXmlReader.cs
- PickBranchDesigner.xaml.cs
- MailHeaderInfo.cs
- KeySpline.cs
- TypeDescriptor.cs
- SHA1.cs
- SettingsAttributeDictionary.cs
- AccessibleObject.cs
- Gdiplus.cs
- EnterpriseServicesHelper.cs
- PriorityRange.cs
- XmlSchemaSimpleTypeRestriction.cs
- HyperLink.cs
- Hash.cs
- updateconfighost.cs
- Geometry.cs
- GC.cs
- TextDecorations.cs
- CompressEmulationStream.cs
- dtdvalidator.cs
- PerformanceCounterManager.cs
- OdbcConnectionPoolProviderInfo.cs
- CultureSpecificStringDictionary.cs
- PackageFilter.cs
- SpellerStatusTable.cs
- X509CertificateTrustedIssuerElement.cs
- Lazy.cs
- GlyphingCache.cs
- TimersDescriptionAttribute.cs
- WebEventTraceProvider.cs
- JumpList.cs
- ExpressionHelper.cs
- PageCache.cs