Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Shared / MS / Internal / Generated / PenLineJoinValidation.cs / 1 / PenLineJoinValidation.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; #if PRESENTATION_CORE using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; #else using SR=System.Windows.SR; using SRID=System.Windows.SRID; #endif namespace System.Windows.Media { internal static partial class ValidateEnums { ////// Returns whether or not an enumeration instance a valid value. /// This method is designed to be used with ValidateValueCallback, and thus /// matches it's prototype. /// /// /// Enumeration value to validate. /// ///'true' if the enumeration contains a valid value, 'false' otherwise. public static bool IsPenLineJoinValid(object valueObject) { PenLineJoin value = (PenLineJoin) valueObject; return (value == PenLineJoin.Miter) || (value == PenLineJoin.Bevel) || (value == PenLineJoin.Round); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; #if PRESENTATION_CORE using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; #else using SR=System.Windows.SR; using SRID=System.Windows.SRID; #endif namespace System.Windows.Media { internal static partial class ValidateEnums { ////// Returns whether or not an enumeration instance a valid value. /// This method is designed to be used with ValidateValueCallback, and thus /// matches it's prototype. /// /// /// Enumeration value to validate. /// ///'true' if the enumeration contains a valid value, 'false' otherwise. public static bool IsPenLineJoinValid(object valueObject) { PenLineJoin value = (PenLineJoin) valueObject; return (value == PenLineJoin.Miter) || (value == PenLineJoin.Bevel) || (value == PenLineJoin.Round); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ListItem.cs
- RemoteWebConfigurationHost.cs
- MetafileHeader.cs
- URLMembershipCondition.cs
- ImplicitInputBrush.cs
- TemplateKeyConverter.cs
- DataGridPagerStyle.cs
- OpenTypeCommon.cs
- ProtocolReflector.cs
- BatchWriter.cs
- OdbcParameter.cs
- Positioning.cs
- IOException.cs
- WebPartMenuStyle.cs
- StyleBamlRecordReader.cs
- EventWaitHandleSecurity.cs
- DataBindEngine.cs
- HostingEnvironmentSection.cs
- StringInfo.cs
- XmlSchemaGroup.cs
- TdsParserStateObject.cs
- EnlistmentTraceIdentifier.cs
- EncryptedPackageFilter.cs
- JsonStringDataContract.cs
- ToolStripItemDataObject.cs
- SqlErrorCollection.cs
- DeflateEmulationStream.cs
- ServiceOperationListItem.cs
- HostDesigntimeLicenseContext.cs
- DataGridHeaderBorder.cs
- RequestCachePolicyConverter.cs
- ContainerUIElement3D.cs
- ManipulationStartingEventArgs.cs
- Scheduler.cs
- SqlDataSourceTableQuery.cs
- IndexOutOfRangeException.cs
- JsonByteArrayDataContract.cs
- ListView.cs
- DbConnectionPoolIdentity.cs
- TdsRecordBufferSetter.cs
- Rect3D.cs
- SiteMapDataSourceView.cs
- SerializationSectionGroup.cs
- CompiledQuery.cs
- DataGridViewDesigner.cs
- KnownAssemblyEntry.cs
- SuppressIldasmAttribute.cs
- HtmlInputHidden.cs
- Point4DValueSerializer.cs
- ViewStateModeByIdAttribute.cs
- _RequestCacheProtocol.cs
- StringReader.cs
- KeyGestureValueSerializer.cs
- MetaType.cs
- DataGridColumnCollectionEditor.cs
- RecipientInfo.cs
- GPPOINT.cs
- GPPOINT.cs
- VersionConverter.cs
- CodeStatement.cs
- UndoUnit.cs
- XmlSubtreeReader.cs
- DateTimeOffset.cs
- LocatorGroup.cs
- WindowsPrincipal.cs
- TextDecorationCollection.cs
- XmlBindingWorker.cs
- TrustSection.cs
- FieldNameLookup.cs
- SkinBuilder.cs
- ACE.cs
- Overlapped.cs
- RelationshipSet.cs
- DirtyTextRange.cs
- TextTreeNode.cs
- ReturnValue.cs
- TreeBuilder.cs
- Validator.cs
- bidPrivateBase.cs
- CodeDirectoryCompiler.cs
- MimeMultiPart.cs
- _NetworkingPerfCounters.cs
- SocketPermission.cs
- UITypeEditor.cs
- GridViewItemAutomationPeer.cs
- XmlEncoding.cs
- SecurityIdentifierElement.cs
- DataTableTypeConverter.cs
- IPipelineRuntime.cs
- InputElement.cs
- OutputCacheSection.cs
- SerialPort.cs
- UserControl.cs
- SortExpressionBuilder.cs
- ReadOnlyDataSource.cs
- FontWeight.cs
- ToolStripDropDownClosingEventArgs.cs
- RegisteredExpandoAttribute.cs
- TemplateNodeContextMenu.cs
- SafeEventLogReadHandle.cs