Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Core / CSharp / System / Windows / Media / DashStyles.cs / 1 / DashStyles.cs
//---------------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // Description: This file contains the static class DashStyles. // DashStyles contains well known DashStyles implementations. // // History: // 11/15/2004: MichKa - Created it. // //--------------------------------------------------------------------------- using System; using System.Windows; namespace System.Windows.Media { ////// DashStyles - The DashStyles class is static, and contains properties for well known /// dash styles. /// public static class DashStyles { #region Public Static Properties ////// Solid - A solid DashArray (no dashes). /// public static DashStyle Solid { get { if (_solid == null) { DashStyle solid = new DashStyle(); solid.Freeze(); _solid = solid; } return _solid; } } ////// Dash - A DashArray which is 2 on, 2 off /// public static DashStyle Dash { get { if (_dash == null) { DashStyle style = new DashStyle(new double[] {2, 2}, 1); style.Freeze(); _dash = style; } return _dash; } } ////// Dot - A DashArray which is 0 on, 2 off /// public static DashStyle Dot { get { if (_dot == null) { DashStyle style = new DashStyle(new double[] {0, 2}, 0); style.Freeze(); _dot = style; } return _dot; } } ////// DashDot - A DashArray which is 2 on, 2 off, 0 on, 2 off /// public static DashStyle DashDot { get { if (_dashDot == null) { DashStyle style = new DashStyle(new double[] {2, 2, 0, 2}, 1); style.Freeze(); _dashDot = style; } return _dashDot; } } ////// DashDot - A DashArray which is 2 on, 2 off, 0 on, 2 off, 0 on, 2 off /// public static DashStyle DashDotDot { get { if (_dashDotDot == null) { DashStyle style = new DashStyle(new double[] {2, 2, 0, 2, 0, 2}, 1); style.Freeze(); _dashDotDot = style; } return _dashDotDot; } } #endregion Public Static Properties #region Private Static Fields private static DashStyle _solid; private static DashStyle _dash; private static DashStyle _dot; private static DashStyle _dashDot; private static DashStyle _dashDotDot; #endregion Private Static Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // Description: This file contains the static class DashStyles. // DashStyles contains well known DashStyles implementations. // // History: // 11/15/2004: MichKa - Created it. // //--------------------------------------------------------------------------- using System; using System.Windows; namespace System.Windows.Media { ////// DashStyles - The DashStyles class is static, and contains properties for well known /// dash styles. /// public static class DashStyles { #region Public Static Properties ////// Solid - A solid DashArray (no dashes). /// public static DashStyle Solid { get { if (_solid == null) { DashStyle solid = new DashStyle(); solid.Freeze(); _solid = solid; } return _solid; } } ////// Dash - A DashArray which is 2 on, 2 off /// public static DashStyle Dash { get { if (_dash == null) { DashStyle style = new DashStyle(new double[] {2, 2}, 1); style.Freeze(); _dash = style; } return _dash; } } ////// Dot - A DashArray which is 0 on, 2 off /// public static DashStyle Dot { get { if (_dot == null) { DashStyle style = new DashStyle(new double[] {0, 2}, 0); style.Freeze(); _dot = style; } return _dot; } } ////// DashDot - A DashArray which is 2 on, 2 off, 0 on, 2 off /// public static DashStyle DashDot { get { if (_dashDot == null) { DashStyle style = new DashStyle(new double[] {2, 2, 0, 2}, 1); style.Freeze(); _dashDot = style; } return _dashDot; } } ////// DashDot - A DashArray which is 2 on, 2 off, 0 on, 2 off, 0 on, 2 off /// public static DashStyle DashDotDot { get { if (_dashDotDot == null) { DashStyle style = new DashStyle(new double[] {2, 2, 0, 2, 0, 2}, 1); style.Freeze(); _dashDotDot = style; } return _dashDotDot; } } #endregion Public Static Properties #region Private Static Fields private static DashStyle _solid; private static DashStyle _dash; private static DashStyle _dot; private static DashStyle _dashDot; private static DashStyle _dashDotDot; #endregion Private Static Fields } } // 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
- Message.cs
- WithStatement.cs
- Lease.cs
- ExtentCqlBlock.cs
- ParserStreamGeometryContext.cs
- DataBoundControlHelper.cs
- ArrayConverter.cs
- CollectionDataContract.cs
- httpstaticobjectscollection.cs
- InstanceDescriptor.cs
- HideDisabledControlAdapter.cs
- BinHexDecoder.cs
- LinearGradientBrush.cs
- EventLogPermission.cs
- Roles.cs
- ServiceAuthorizationManager.cs
- AssemblyAttributesGoHere.cs
- CompositeActivityTypeDescriptor.cs
- ScriptDescriptor.cs
- UIElementParagraph.cs
- FileClassifier.cs
- State.cs
- ButtonAutomationPeer.cs
- MobileSysDescriptionAttribute.cs
- DesignerSerializerAttribute.cs
- EntityFunctions.cs
- OrderByExpression.cs
- Section.cs
- SqlXml.cs
- Constants.cs
- CharacterBufferReference.cs
- IndexExpression.cs
- HostUtils.cs
- EmbeddedMailObjectCollectionEditor.cs
- PackageProperties.cs
- SoapInteropTypes.cs
- ColorTransformHelper.cs
- TileBrush.cs
- SqlAliasesReferenced.cs
- RangeContentEnumerator.cs
- OlePropertyStructs.cs
- EdmEntityTypeAttribute.cs
- TraceFilter.cs
- _AcceptOverlappedAsyncResult.cs
- ProviderSettingsCollection.cs
- ManipulationPivot.cs
- XmlUtil.cs
- TextBox.cs
- TransactedReceiveScope.cs
- PcmConverter.cs
- TextContainerChangedEventArgs.cs
- ConfigXmlAttribute.cs
- DispatcherHookEventArgs.cs
- DateTimeStorage.cs
- TableDesigner.cs
- DefaultParameterValueAttribute.cs
- XmlSchemaExternal.cs
- StylusSystemGestureEventArgs.cs
- ErrorWebPart.cs
- Peer.cs
- TextTreeUndoUnit.cs
- DropAnimation.xaml.cs
- SmiRecordBuffer.cs
- LinkedList.cs
- GenericArgumentsUpdater.cs
- AnchoredBlock.cs
- RangeValidator.cs
- InheritablePropertyChangeInfo.cs
- SafeBitVector32.cs
- RuleSetDialog.cs
- AdornerLayer.cs
- XmlFormatWriterGenerator.cs
- BitmapFrameDecode.cs
- METAHEADER.cs
- WindowsEditBoxRange.cs
- CodeCastExpression.cs
- ColumnResizeAdorner.cs
- Propagator.cs
- MenuRenderer.cs
- QuaternionAnimationBase.cs
- LinqDataSourceValidationException.cs
- CanExecuteRoutedEventArgs.cs
- GridEntryCollection.cs
- ControlBuilderAttribute.cs
- AssemblyCollection.cs
- WindowsScrollBar.cs
- UrlMappingCollection.cs
- SqlProviderManifest.cs
- ByteFacetDescriptionElement.cs
- EnumMemberAttribute.cs
- Table.cs
- DataServiceClientException.cs
- PointLightBase.cs
- StreamMarshaler.cs
- SqlBooleanizer.cs
- ColorBlend.cs
- ControlIdConverter.cs
- ToolboxComponentsCreatedEventArgs.cs
- DataObjectFieldAttribute.cs
- TimeSpanMinutesOrInfiniteConverter.cs