Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / FontStyles.cs / 1305600 / FontStyles.cs
//---------------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // Description: Predefined FontStyle structures that correspond to common font styles. // // History: // 01/25/2005 mleonov - Created constants from FontStyle enum values. // //--------------------------------------------------------------------------- using System; using System.Globalization; namespace System.Windows { ////// FontStyles contains predefined font style structures for common font styles. /// public static class FontStyles { ////// Predefined font style : Normal. /// public static FontStyle Normal { get { return new FontStyle(0); } } ////// Predefined font style : Oblique. /// public static FontStyle Oblique { get { return new FontStyle(1); } } ////// Predefined font style : Italic. /// public static FontStyle Italic { get { return new FontStyle(2); } } internal static bool FontStyleStringToKnownStyle(string s, IFormatProvider provider, ref FontStyle fontStyle) { if (s.Equals("Normal", StringComparison.OrdinalIgnoreCase)) { fontStyle = FontStyles.Normal; return true; } if (s.Equals("Italic", StringComparison.OrdinalIgnoreCase)) { fontStyle = FontStyles.Italic; return true; } if (s.Equals("Oblique", StringComparison.OrdinalIgnoreCase)) { fontStyle = FontStyles.Oblique; 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
- FormsIdentity.cs
- WebBrowserNavigatingEventHandler.cs
- ToolBarButton.cs
- Polyline.cs
- SqlDataReader.cs
- UnsafeMethods.cs
- LoginView.cs
- PtsCache.cs
- Vector3DAnimationUsingKeyFrames.cs
- CommandField.cs
- Environment.cs
- ThrowHelper.cs
- PageAsyncTask.cs
- SqlPersonalizationProvider.cs
- InArgument.cs
- SecurityElement.cs
- BitmapEffectInput.cs
- PeerCustomResolverElement.cs
- AsyncPostBackTrigger.cs
- WindowsFormsHelpers.cs
- COSERVERINFO.cs
- TextServicesCompartment.cs
- TextSimpleMarkerProperties.cs
- TreeNodeCollectionEditorDialog.cs
- ResXBuildProvider.cs
- ResourcesBuildProvider.cs
- WebPartsPersonalizationAuthorization.cs
- PathGeometry.cs
- TypeSemantics.cs
- MappingModelBuildProvider.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- Native.cs
- LogEntryUtils.cs
- Exceptions.cs
- ActivationServices.cs
- ProjectionPruner.cs
- RectConverter.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- MemberDescriptor.cs
- SimpleRecyclingCache.cs
- Transform3D.cs
- FrameworkObject.cs
- NamedPipeProcessProtocolHandler.cs
- CqlWriter.cs
- SafeFindHandle.cs
- ImageMetadata.cs
- SqlException.cs
- NodeFunctions.cs
- TypeProvider.cs
- DnsPermission.cs
- StylusButton.cs
- HyperLinkDataBindingHandler.cs
- EventWaitHandle.cs
- SchemeSettingElementCollection.cs
- DataRecordInfo.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- ReaderWriterLock.cs
- EndpointBehaviorElementCollection.cs
- EmptyStringExpandableObjectConverter.cs
- SearchForVirtualItemEventArgs.cs
- XmlnsDictionary.cs
- PartManifestEntry.cs
- PathSegment.cs
- Int16Storage.cs
- StyleSheetRefUrlEditor.cs
- PageSetupDialog.cs
- PathFigure.cs
- ProcessInfo.cs
- BackStopAuthenticationModule.cs
- HttpCachePolicyBase.cs
- DataGridViewUtilities.cs
- ScheduleChanges.cs
- PipelineModuleStepContainer.cs
- TransactionState.cs
- WebPartDisplayMode.cs
- ActivityDesignerLayoutSerializers.cs
- Pair.cs
- DriveInfo.cs
- UIntPtr.cs
- NavigationHelper.cs
- MTConfigUtil.cs
- UIElementHelper.cs
- NativeMethods.cs
- UpdateManifestForBrowserApplication.cs
- EventHandlingScope.cs
- ResourcesChangeInfo.cs
- UserControlBuildProvider.cs
- Roles.cs
- ImageDrawing.cs
- Logging.cs
- HtmlInputImage.cs
- EntityCommandExecutionException.cs
- ContainerParaClient.cs
- DataGridAddNewRow.cs
- InternalsVisibleToAttribute.cs
- PolyBezierSegment.cs
- IdentityValidationException.cs
- LambdaCompiler.Logical.cs
- IListConverters.cs
- WebPartDisplayModeCollection.cs