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 / TextEffect.cs / 1 / TextEffect.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2001 // // File: TextEffect.cs // // Contents: TextEffect class // // Created: 3/23/2004 garyyang // //----------------------------------------------------------------------- using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows; using System.Collections; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Markup; using System.ComponentModel; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { ////// The class definition for TextEffect /// [Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)] public partial class TextEffect : Animatable { //---------------------------------------- // constructor //---------------------------------------- ////// Constructor to TextEffect /// /// transform of the text effect /// foreground of the text effect /// clip of the text effect /// starting character index of the text effect /// number of code points public TextEffect( Transform transform, Brush foreground, Geometry clip, int positionStart, int positionCount ) { if (positionCount < 0) { throw new ArgumentOutOfRangeException("positionCount", SR.Get(SRID.ParameterCannotBeNegative)); } Transform = transform; Foreground = foreground; Clip = clip; PositionStart = positionStart; PositionCount = positionCount; } ////// constructor /// public TextEffect() { } //------------------------------- // Private method //------------------------------- private static bool OnPositionStartChanging(int value) { return (value >= 0); } private static bool OnPositionCountChanging(int value) { return (value >= 0); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2001 // // File: TextEffect.cs // // Contents: TextEffect class // // Created: 3/23/2004 garyyang // //----------------------------------------------------------------------- using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows; using System.Collections; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Markup; using System.ComponentModel; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { ////// The class definition for TextEffect /// [Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)] public partial class TextEffect : Animatable { //---------------------------------------- // constructor //---------------------------------------- ////// Constructor to TextEffect /// /// transform of the text effect /// foreground of the text effect /// clip of the text effect /// starting character index of the text effect /// number of code points public TextEffect( Transform transform, Brush foreground, Geometry clip, int positionStart, int positionCount ) { if (positionCount < 0) { throw new ArgumentOutOfRangeException("positionCount", SR.Get(SRID.ParameterCannotBeNegative)); } Transform = transform; Foreground = foreground; Clip = clip; PositionStart = positionStart; PositionCount = positionCount; } ////// constructor /// public TextEffect() { } //------------------------------- // Private method //------------------------------- private static bool OnPositionStartChanging(int value) { return (value >= 0); } private static bool OnPositionCountChanging(int value) { return (value >= 0); } } } // 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
- TextTreeTextElementNode.cs
- StyleBamlRecordReader.cs
- Stack.cs
- ISAPIApplicationHost.cs
- CodeConditionStatement.cs
- ResourceAttributes.cs
- SqlBuilder.cs
- XmlSchemaComplexType.cs
- UnsafeNativeMethods.cs
- CryptoConfig.cs
- SpnegoTokenProvider.cs
- CLSCompliantAttribute.cs
- ValidateNames.cs
- IdentityReference.cs
- SoapIgnoreAttribute.cs
- DateTimeUtil.cs
- PermissionSetTriple.cs
- PkcsMisc.cs
- RecordManager.cs
- LicenseContext.cs
- SurrogateSelector.cs
- SecurityUtils.cs
- AuthenticationModuleElementCollection.cs
- DataGridViewTopLeftHeaderCell.cs
- AssociatedControlConverter.cs
- GridViewSelectEventArgs.cs
- StackSpiller.Temps.cs
- DirectionalLight.cs
- TextLineResult.cs
- ClientApiGenerator.cs
- NetworkInformationException.cs
- Soap11ServerProtocol.cs
- AttachedPropertyInfo.cs
- RadioButtonList.cs
- SqlTriggerAttribute.cs
- TextFormatter.cs
- ZoneLinkButton.cs
- SafeLibraryHandle.cs
- CheckBox.cs
- XNodeSchemaApplier.cs
- BinaryNode.cs
- IncrementalReadDecoders.cs
- HashJoinQueryOperatorEnumerator.cs
- WindowsToolbarItemAsMenuItem.cs
- DesigntimeLicenseContextSerializer.cs
- Rijndael.cs
- XPathSingletonIterator.cs
- DbXmlEnabledProviderManifest.cs
- ConfigXmlElement.cs
- SafeProcessHandle.cs
- WindowsSysHeader.cs
- RuntimeConfigurationRecord.cs
- ThreadPool.cs
- TabControl.cs
- AdornedElementPlaceholder.cs
- DropDownList.cs
- WebEncodingValidatorAttribute.cs
- SettingsBase.cs
- MultiAsyncResult.cs
- SecurityState.cs
- TagPrefixInfo.cs
- CompositeDataBoundControl.cs
- CompositeCollectionView.cs
- PrimaryKeyTypeConverter.cs
- SqlException.cs
- BitStack.cs
- SingleTagSectionHandler.cs
- TemplateControl.cs
- MembershipSection.cs
- LoginView.cs
- APCustomTypeDescriptor.cs
- ActiveXHelper.cs
- ScriptBehaviorDescriptor.cs
- SoapIncludeAttribute.cs
- SelectedDatesCollection.cs
- WebPartAuthorizationEventArgs.cs
- TdsValueSetter.cs
- BufferedWebEventProvider.cs
- CompilerHelpers.cs
- PropertyBuilder.cs
- ViewBox.cs
- SchemaImporter.cs
- ObfuscationAttribute.cs
- MenuStrip.cs
- DelegatedStream.cs
- UriScheme.cs
- EventlogProvider.cs
- SplitterCancelEvent.cs
- WindowsTokenRoleProvider.cs
- StandardCommands.cs
- DBDataPermission.cs
- HelpPage.cs
- WindowHideOrCloseTracker.cs
- IndexingContentUnit.cs
- MediaElement.cs
- MenuRenderer.cs
- HttpCapabilitiesBase.cs
- DataGridToolTip.cs
- ValueUnavailableException.cs
- DependencyObjectType.cs