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
- CodeNamespaceImportCollection.cs
- WebPartTransformerAttribute.cs
- MarkupExtensionReturnTypeAttribute.cs
- SQlBooleanStorage.cs
- DataGridViewDataErrorEventArgs.cs
- ContentPropertyAttribute.cs
- XPathItem.cs
- ConfigXmlElement.cs
- ResourceSet.cs
- HashAlgorithm.cs
- ContainerUtilities.cs
- SuspendDesigner.cs
- ToolStripDropDownClosingEventArgs.cs
- Stackframe.cs
- CounterSample.cs
- CommandDevice.cs
- Comparer.cs
- _Events.cs
- X509Certificate2.cs
- TreeNodeStyleCollection.cs
- StylusPointProperties.cs
- DataTablePropertyDescriptor.cs
- DataSourceBooleanViewSchemaConverter.cs
- SafeTokenHandle.cs
- DateTimeFormatInfo.cs
- SpecialNameAttribute.cs
- WindowsSspiNegotiation.cs
- MetadataSource.cs
- Compiler.cs
- KeyValuePairs.cs
- X509ChainPolicy.cs
- ColorDialog.cs
- TileBrush.cs
- AmbientValueAttribute.cs
- CodeSubDirectoriesCollection.cs
- ProfileParameter.cs
- ExpressionEditorAttribute.cs
- RangeValidator.cs
- XmlSchemaGroupRef.cs
- TextStore.cs
- SqlProfileProvider.cs
- ThreadInterruptedException.cs
- ElementNotAvailableException.cs
- GetWorkflowTree.cs
- Mappings.cs
- ObjectListItemCollection.cs
- BinaryReader.cs
- TextEditorLists.cs
- HtmlTable.cs
- MachineSettingsSection.cs
- TraceSource.cs
- ButtonColumn.cs
- ComboBoxDesigner.cs
- DataGridRowHeader.cs
- DynamicValidator.cs
- IndexedString.cs
- CounterCreationData.cs
- IteratorDescriptor.cs
- ListenerElementsCollection.cs
- DataGridCell.cs
- SpecialFolderEnumConverter.cs
- SecUtil.cs
- XPathExpr.cs
- SurrogateEncoder.cs
- NominalTypeEliminator.cs
- ConsumerConnectionPoint.cs
- SymLanguageVendor.cs
- HttpException.cs
- RoutingTable.cs
- TrackingServices.cs
- TimeIntervalCollection.cs
- SystemInformation.cs
- LayoutEvent.cs
- CodeTypeMemberCollection.cs
- BaseResourcesBuildProvider.cs
- WindowsAuthenticationEventArgs.cs
- LineServices.cs
- ContractMethodParameterInfo.cs
- ImageSourceConverter.cs
- DetailsViewPageEventArgs.cs
- AutomationPatternInfo.cs
- ControlParameter.cs
- AssemblyInfo.cs
- InfiniteIntConverter.cs
- ExpandCollapsePattern.cs
- ResXResourceWriter.cs
- MarshalByValueComponent.cs
- Base64WriteStateInfo.cs
- SchemaManager.cs
- DataKeyCollection.cs
- CapabilitiesSection.cs
- UnknownExceptionActionHelper.cs
- ErrorWebPart.cs
- XmlBufferReader.cs
- XmlResolver.cs
- ProfileEventArgs.cs
- ArrayConverter.cs
- ProfileEventArgs.cs
- smtpconnection.cs
- RegexCompiler.cs