Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Ink / StylusTip.cs / 1 / StylusTip.cs
//------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------
using System;
namespace System.Windows.Ink
{
///
/// StylusTip
///
public enum StylusTip
{
///
/// Rectangle
///
Rectangle = 0,
///
/// Ellipse
///
Ellipse
}
///
/// Internal helper to avoid costly call to Enum.IsDefined
///
internal static class StylusTipHelper
{
internal static bool IsDefined(StylusTip stylusTip)
{
if (stylusTip < StylusTip.Rectangle || stylusTip > StylusTip.Ellipse)
{
return false;
}
return true;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------
using System;
namespace System.Windows.Ink
{
///
/// StylusTip
///
public enum StylusTip
{
///
/// Rectangle
///
Rectangle = 0,
///
/// Ellipse
///
Ellipse
}
///
/// Internal helper to avoid costly call to Enum.IsDefined
///
internal static class StylusTipHelper
{
internal static bool IsDefined(StylusTip stylusTip)
{
if (stylusTip < StylusTip.Rectangle || stylusTip > StylusTip.Ellipse)
{
return false;
}
return true;
}
}
}
// 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
- SerialErrors.cs
- XmlKeywords.cs
- StylusOverProperty.cs
- shaper.cs
- DataTransferEventArgs.cs
- connectionpool.cs
- NameValueFileSectionHandler.cs
- IncrementalCompileAnalyzer.cs
- EntityTypeEmitter.cs
- ProjectionPathSegment.cs
- CalendarAutomationPeer.cs
- SafeNativeMethods.cs
- Triangle.cs
- shaperfactory.cs
- XMLUtil.cs
- SecUtil.cs
- LayoutEditorPart.cs
- ConfigurationPropertyAttribute.cs
- TextChangedEventArgs.cs
- _SafeNetHandles.cs
- TextPenaltyModule.cs
- DataTableTypeConverter.cs
- DomNameTable.cs
- MetadataItem.cs
- Ipv6Element.cs
- ImageListStreamer.cs
- CreateUserErrorEventArgs.cs
- SizeChangedInfo.cs
- MissingMethodException.cs
- ApplicationCommands.cs
- util.cs
- ConstructorExpr.cs
- EntityViewGenerator.cs
- RangeValueProviderWrapper.cs
- DashStyles.cs
- UnsafeNativeMethods.cs
- ValueTypeFixupInfo.cs
- ExpressionBuilder.cs
- StringUtil.cs
- SQLSingleStorage.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- WsdlInspector.cs
- RegistryPermission.cs
- BlurEffect.cs
- CodeTypeMember.cs
- DocumentAutomationPeer.cs
- CommandLibraryHelper.cs
- Dynamic.cs
- ResourcePermissionBaseEntry.cs
- loginstatus.cs
- RadialGradientBrush.cs
- OracleParameterBinding.cs
- StoryFragments.cs
- TextureBrush.cs
- BorderGapMaskConverter.cs
- storepermissionattribute.cs
- BatchServiceHost.cs
- __Filters.cs
- HtmlImageAdapter.cs
- UInt64.cs
- ScriptControlManager.cs
- Configuration.cs
- TreeBuilder.cs
- ListItemsCollectionEditor.cs
- FreeIndexList.cs
- CompilerCollection.cs
- XmlSchemaSimpleContentExtension.cs
- Model3DCollection.cs
- InternalRelationshipCollection.cs
- TypeTypeConverter.cs
- MetadataItemEmitter.cs
- LinkedResourceCollection.cs
- RadioButtonFlatAdapter.cs
- ClientUrlResolverWrapper.cs
- ListControl.cs
- ReceiveContextCollection.cs
- SvcMapFileLoader.cs
- GiveFeedbackEventArgs.cs
- Utils.cs
- GridSplitterAutomationPeer.cs
- JumpPath.cs
- Flattener.cs
- Ipv6Element.cs
- PKCS1MaskGenerationMethod.cs
- ExecutionEngineException.cs
- Filter.cs
- TypeListConverter.cs
- RemotingException.cs
- BindingContext.cs
- RijndaelManagedTransform.cs
- SubMenuStyle.cs
- TableAutomationPeer.cs
- HyperLinkStyle.cs
- PhysicalAddress.cs
- ColumnTypeConverter.cs
- While.cs
- SchemaMerger.cs
- HtmlTextArea.cs
- DrawingAttributes.cs
- StreamAsIStream.cs