Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Shared / MS / Internal / Generated / TextDecorationLocationValidation.cs / 1 / TextDecorationLocationValidation.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 { 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 IsTextDecorationLocationValid(object valueObject) { TextDecorationLocation value = (TextDecorationLocation) valueObject; return (value == TextDecorationLocation.Underline) || (value == TextDecorationLocation.OverLine) || (value == TextDecorationLocation.Strikethrough) || (value == TextDecorationLocation.Baseline); } } } // 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 { 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 IsTextDecorationLocationValid(object valueObject) { TextDecorationLocation value = (TextDecorationLocation) valueObject; return (value == TextDecorationLocation.Underline) || (value == TextDecorationLocation.OverLine) || (value == TextDecorationLocation.Strikethrough) || (value == TextDecorationLocation.Baseline); } } } // 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
- HandledEventArgs.cs
- HierarchicalDataBoundControlAdapter.cs
- PkcsUtils.cs
- PropertyMapper.cs
- BatchWriter.cs
- SqlBuffer.cs
- DataGridColumn.cs
- SizeChangedInfo.cs
- MemberAssignment.cs
- Vertex.cs
- ScalarRestriction.cs
- SmiEventSink_Default.cs
- XMLDiffLoader.cs
- DateBoldEvent.cs
- DateTimeOffset.cs
- TextProperties.cs
- SegmentInfo.cs
- COM2ColorConverter.cs
- OdbcConnectionString.cs
- HMACSHA1.cs
- ADMembershipProvider.cs
- ValueType.cs
- DataGridViewSelectedRowCollection.cs
- EntityDataSource.cs
- ContactManager.cs
- DesignerSerializationVisibilityAttribute.cs
- StatusBarDrawItemEvent.cs
- MetadataReference.cs
- GrammarBuilderBase.cs
- ImageAttributes.cs
- FontStretchConverter.cs
- FormatterServicesNoSerializableCheck.cs
- MetabaseServerConfig.cs
- InternalRelationshipCollection.cs
- WindowsListViewGroupHelper.cs
- CustomBinding.cs
- LinqDataSourceStatusEventArgs.cs
- NavigationCommands.cs
- SymbolEqualComparer.cs
- EventRecord.cs
- EmptyStringExpandableObjectConverter.cs
- ListViewUpdateEventArgs.cs
- StrongNameIdentityPermission.cs
- HtmlInputButton.cs
- Attribute.cs
- LinkButton.cs
- ellipse.cs
- HttpWebRequest.cs
- XmlResolver.cs
- oledbmetadatacollectionnames.cs
- Color.cs
- VisualState.cs
- OverlappedAsyncResult.cs
- AttachedAnnotationChangedEventArgs.cs
- SocketInformation.cs
- AffineTransform3D.cs
- ServiceThrottlingElement.cs
- TransformPatternIdentifiers.cs
- XmlSchemaGroup.cs
- RegexRunnerFactory.cs
- MatrixConverter.cs
- FormattedTextSymbols.cs
- Invariant.cs
- BinHexEncoding.cs
- LinqDataView.cs
- CodeGenerator.cs
- Behavior.cs
- DataGridRelationshipRow.cs
- TraceLevelStore.cs
- DataChangedEventManager.cs
- SqlPersonalizationProvider.cs
- ConditionalAttribute.cs
- TextTreeRootTextBlock.cs
- HashFinalRequest.cs
- PolicyManager.cs
- RequestSecurityToken.cs
- ChangePassword.cs
- TrustLevelCollection.cs
- COM2ColorConverter.cs
- HttpResponseInternalBase.cs
- JapaneseLunisolarCalendar.cs
- ChainedAsyncResult.cs
- SubclassTypeValidatorAttribute.cs
- ActivityCodeDomSerializer.cs
- QueryContinueDragEventArgs.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- CapabilitiesAssignment.cs
- QueryOutputWriter.cs
- SliderAutomationPeer.cs
- ActionMessageFilter.cs
- TemplateControlParser.cs
- ValidatedControlConverter.cs
- StyleSelector.cs
- SchemaTypeEmitter.cs
- ResXBuildProvider.cs
- SqlNodeAnnotation.cs
- NamespaceMapping.cs
- OAVariantLib.cs
- HotSpot.cs
- TemplatePropertyEntry.cs